#istcf-paymentmethod-connect

1 messages · Page 1 of 1 (latest)

next minnow
#

you're instantiating Stripe.js on your webpage as the Connect acct, that is the issue here

are you passing stripeAccount: acct_123 when you initialize Stripe.js on your webpage?

tall sandal
#

I just load the stripe package on react

next minnow
#

sure but how are you initializing it

tall sandal
#

I'll check further. i'll let u know.

next minnow
#

yeah found the issue, it is what I mentioned above

#

in your React code, you are passing the Connect acct ID, so acct_1234 etc

#

that means you're creating the PaymentMethod on the connected account

#

so to create it just on the Platform, you need to remove passing the acct ID to Stripe.js

tall sandal
#

let me check inside deeper.

#

@next minnow you were right. found it. Is there a way to bypass the stripeAccount definition when creating the payment method by that it will be created on the platform?

next minnow
#

just don't pass stripeAccount

#

like just initialize only with your publishable key

#

and thats it