#sre_code

1 messages ¡ Page 1 of 1 (latest)

mighty roseBOT
#

👋 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.

iron wadi
#

Hi there

#

When retrieving a PaymentIntent, you should pass the PaymenIntent ID (pi_...), not the Client Secret

molten copper
#

The stripe react sdk clearly states is the client_secret. from the sdk itself:

/**

iron wadi
#

Oh, yep, you're right.

#

Hm, no response? Are you able to add some logging to see what paymentIntent resolves to, if anything?

molten copper
#

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

iron wadi
#

Is there a test environment you can link to where I can reproduce?

molten copper
#

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

iron wadi
#

Can you share one of the PI IDs? (not the client secret)

molten copper
#

pi_3RBMj0CAgKP7fM181vgfzb3T

iron wadi
#

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?

molten copper
#

Yes, the stripe instance is intialized with the stripe account id and pb key

#

If that weren't the case I would get a 404 when I try to retrieve

iron wadi
#

Can you share a bit more of your code? I see at least one error earlier today for a GET that returned a 404 (looks like for having used a stripe account ID that does not have access to that PI) but not much else.

#

Any other logs you can collect?