#mikeybelike_unexpected
1 messages ยท Page 1 of 1 (latest)
๐ 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/1217277255559155853
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
This is an example of the code:
$checkout_session = $stripe->checkout->sessions->create([
'customer_email' => auth()->user()->email,
'ui_mode' => 'embedded',
'line_items' => [
[...]
],
'mode' => 'payment',
'return_url' => $returnUrl . '?status=completed&session_id={CHECKOUT_SESSION_ID}',
'metadata' => [
'quantity' => $quantity,
],
], ['stripe_account' => $connectStripeAccountId]);
Hello! What's the error message that you're seeing in the console?
getting a 404 on a POST request:
Alright, did you include the Stripe account header also when initializing Stripe clientside?
No.. not client side is that a requirement I didn't see a param for it?
ahh unless you mean in loadStripe
You can take a look at how to do it here https://docs.stripe.com/connect/authentication?create-client=react#adding-the-connected-account-id-to-a-client-side-application