code-corps / code-corps/ember-stripe-elements

passing stripeAccount parameter to Stripe constructor

オープン
#34 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
64
フォーク
39
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi,
I need to create a stripe source on a connected account, this is feasible only by creating the Stripe instance with the optional stripeAccount parameter.
var stripe = new Stripe(
'pk_test_....',
{stripeAccount: "acct_..."},
);
I was thinking to enable lazy load, and in the route->beforeModel call the load function with the stripeAccount parameter:
this.get('stripe').load({stripeAccount="acct_..."});
Any other idea?
Anyone can help me on this?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、addon の load 関数と、それが Stripe インスタンスをどのように作成するかを追跡します。issue では route-beforeModel も想定される使用箇所として特定されています。オプションの stripeAccount 値をコンストラクターに渡す方法を確認し、そのうえで connected account 用の source の作成がそのアカウントを使用し、既存の初期化動作を変更しないことを検証します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
frontend, payments
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。