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

passing stripeAccount parameter to Stripe constructor

Aperta
#34 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
64
Fork
39
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.