#bassRAWR-elements-payments
1 messages ยท Page 1 of 1 (latest)
preferably based off the client secret value
(we were parsing out the PI from it for now) but i think we're thinking about htis the wrong way (for checking API broker side)
maybe retrieve and check against that https://stripe.com/docs/api/payment_intents/retrieve ?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
First off - I definitely would suggest parsing out the PI ID from the client secret. While it works now, it's always possible for those values to change it would break your whole integration
suggest parsing it out, or not parsing it out
OOPS! So sorry - updated to say "not parsing it out"
But going back to your original question, you can actually use the client-secret to retrieve your Payment Intent client-side (see https://stripe.com/docs/js/payment_intents/retrieve_payment_intent)
and then just check in the PI to see if it succeeded? Mainly right now we're just wanting to check to make sure this "first payment" succeeded
i guess we could check the amount, not sure if there's a specific value on there you would recommend checking to make sure it went through fine? We're all credit cards (no other payment methods)
ahhh just found this https://stripe.com/docs/payments/payment-intents/verifying-status#checking-status-retrieve i think that should be good thanks for your help!
๐ Awesome! If you have any questions after reading through that let me know