#wullvie

1 messages · Page 1 of 1 (latest)

heavy depotBOT
sly rapids
#

hey pompey

white vector
#

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?

sly rapids
#

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)

white vector
#

Ah like confirm that the payment actually happened once you get the user navigates to your success URL or something?

sly rapids
#

exactly

#

i should be able to use that payment_intent id though no?

white vector
#

Yes, you can do that or you can retrieve the checkout session itself

sly rapids
#

perfect

#

will that checkout_id expire?

#

i know the URL does

white vector
#

The session expires after 24 hours, you can still use the ID but the session itself won't be able to take payments anymore

sly rapids
#

ok great

#

thanks a bunch much appreciated