#whimsical_raccoon_51035

1 messages · Page 1 of 1 (latest)

light tundraBOT
keen vault
#

Ok, you should set stripeAccount in StripeProvider

analog wigeon
#

I don't understand.

#

How do I set the stripe provider in the react code? I am a bit confused.

keen vault
#

Wait, it's react, not react-native

#

Sorry for the confusion, you should set it in loadStripe

analog wigeon
#

It's next/js

#

Yes I have that line:
const stripePromise = loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY);

keen vault
#
        YOUR_KEY,
         {
            stripeAccount: 'YOUR_ACC_ID',
        }
)
analog wigeon
#

Ok I think that worked 🙂

const stripePromise = loadStripe(process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY,
  {
    stripeAccount: 'acct_1NZ9YOCWrzPXDzEA',
  });
#

Thank you so much