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

passing stripeAccount parameter to Stripe constructor

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
64
Forks
39
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the addon's load function and how it creates the Stripe instance; the issue also identifies route-beforeModel as the intended usage site. Determine how an optional stripeAccount value could reach the constructor, then verify that connected-account source creation uses that account without changing existing initialization behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, payments
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.