#surgical-connect-stripejs
1 messages · Page 1 of 1 (latest)
Hi 👋 yes, if you're using Stripe JS for objects created on a Connected account, then you'll need to initialize using the stripeAccount parameter in order to interact with those objects:
https://stripe.com/docs/js/initializing#init_stripe_js-options-stripeAccount
thank you - we're using this function loadStripe:
import {loadStripe} from '@stripe/stripe-js';
// Make sure to call loadStripe outside of a component’s render to avoid
// recreating the Stripe object on every render.
const stripePromise = loadStripe('asdfasdf');
does loadStripe take a second argument for options? I couldn't find this in documentation
Gotcha, yeah, that function takes the same parameters as if you weren't using the wrapper.
https://github.com/stripe/stripe-js#:~:text=It takes the same parameters passed when directly initializing a Stripe instance.
surgical-connect-stripejs