#loaderchips_code

1 messages ยท Page 1 of 1 (latest)

brazen windBOT
smoky agateBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

brazen windBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1269943946214248481

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

distant pagoda
#

hey @prisma sable

prisma sable
#

๐Ÿ‘‹ happy to help

distant pagoda
prisma sable
#

taking a look

distant pagoda
#

this is the stripe request id -- req_NbqhZTSl2zblNv

#

these are the library verions on client side -- "@stripe/react-stripe-js": "^2.7.3",
"@stripe/stripe-js": "4.1.0",

#

on the server we are creating the session like this. not sure if stripe_account param is affecting this somehow -- session = Stripe::Checkout::Session.create(session_params, { api_key: ApiKeySelector.standard_connect_api_key, stripe_account: @nonprofit.connected_account.account_id })

prisma sable
#

how are you initiating your Stripe.js instance?

#

are you passing the connected account ID?

distant pagoda
#

no. this is how we initiate it -- const stripe = loadStripe(
'pk_test_51KmI8jAY9OACmYiwv6QXagmlPqJQtIq1i0EmJfrWdjmputVRqT5bfND1dvDvCjIU8Cagg68IHGoVmafeaN0nKGrm00b4xWkH8F'
);

prisma sable
#

that's the issue

#

when you created the CheckoutSession, you created on behalf of your connected account

#

but when you're trying to display it on your frontend

distant pagoda
#

makes total sense

prisma sable
#

you're searching in your platform's resources

distant pagoda
#

is there a way to provide the stripe_account in loadStripe?

distant pagoda
#

trying now

#

thanks that worked.

#

much appreciated!