#wullvie
1 messages · Page 1 of 1 (latest)
hey pompey
Hello, That pi_ object should be the one that has info on the payment itself. The Checkout Session object will have a payment_intent property that has the ID of the related payment intent
What are you looking to validate about the payment?
oh i overlooked the payment_inent field cool
i create a checkout session on iOS, send user to URL, then on callback (on_success) just want to double validate this payment
i'm creating their customer_id prior to checkout, so I'm passing that when creating the checkout session. just want to be able to see (on my end) a way to validate it
(if that makes sense lol)
Ah like confirm that the payment actually happened once you get the user navigates to your success URL or something?
Yes, you can do that or you can retrieve the checkout session itself
Also I assume you are doing this so that the checkout session ID will appear in the success URL? https://stripe.com/docs/payments/checkout/custom-success-page#modify-success-url
The session expires after 24 hours, you can still use the ID but the session itself won't be able to take payments anymore