#sre_code
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/1358911581613854904
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there
When retrieving a PaymentIntent, you should pass the PaymenIntent ID (pi_...), not the Client Secret
The stripe react sdk clearly states is the client_secret. from the sdk itself:
/**
- Retrieve a PaymentIntent using its client secret.
- @docs https://stripe.com/docs/js/payment_intents/retrieve_payment_intent
*/
retrievePaymentIntent(clientSecret: string): Promise<PaymentIntentResult>;
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Oh, yep, you're right.
Hm, no response? Are you able to add some logging to see what paymentIntent resolves to, if anything?
Weird thing is this used to work, when debugging I can go through some steps but then it just freezes, there's no return, it doesn't move to next line, like the flow died somewhere. there's a catch on the return from the stripe library and it doesn't trigger it either
Is there a test environment you can link to where I can reproduce?
None are publicly accessible. I have lives PIs and a pbKey but I don't think that is any good if the requests are not reaching
Can you share one of the PI IDs? (not the client secret)
pi_3RBMj0CAgKP7fM181vgfzb3T
Okay, let's see. Connect is involved, as well as direct charges, which means in order to retrieve this PI, you'll need to use your platform's publishable key and make a request using the stripeAccount header. Is that what you're doing here?