#Austin_Rowe - PaymentIntent Client Secrets
1 messages · Page 1 of 1 (latest)
Hello! No, you should never store the client secret. You can store the PaymentIntent ID and then retrieve the client secret from the API when needed.
The documentation says to pass it along though, is this only in the case of using it on a client session? https://stripe.com/docs/api/payment_intents/retrieve
I tried to retrieve the payment intent and it said one didn't exist with the id I passed in, but I can see the payment intent with that id in the dashboard so I know it exists
This is with Connect btw, idk if that changes things
Can you give me the request ID showing the error about it not existing? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_M1Ne1K573undLQ
If you want I can give you the acct_id that the payment was directed to as well
No need, looking...
Ok, thanks
The reason you got the missing error is because that PaymentIntent exists on a connected account, but you made that API call on your platform account.
Is it possible to make api calls via a connected account? That seems a bit sketchy haha
Or is there some other way to retrieve the intent?
Yeah, you did so when you created that PaymentIntent.
We have documentation about it here: https://stripe.com/docs/connect/authentication
I'll check it out!
So I can pass in the connected account id in the same way as when I created the payment intent, correct?
Yep, then you should be able to retrieve the PaymentIntent.
Perfect, I'll try it out! Thanks @jade badger
Happy to help!
Worked as needed! Thanks again