#varol-checkout-paymentintent

1 messages · Page 1 of 1 (latest)

iron oxideBOT
restive ermine
#

varol-checkout-paymentintent

#

Checkout Sessions expire after 24 hours and then the PaymentIntent is canceled

#

but you can re-use the Session for as long as it's valid

#

otherwise you can just ignore the incomplete PaymentIntent

elfin coral
#

gotcha. i see it's possible to add checkout_session_id as a url parameter to the cancel url. i assume i can use that to retrieve the existing session and reuse.

#

any problems you see with doing that?

#

thank you very much for your help

restive ermine
#

I was just testing and it works https://example.com/cancel?session_id={CHECKOUT_SESSION_ID} for example

elfin coral
#

is it possible to form a new checkout url using the checkout_session_id or a call to retrieve will be necessary?

restive ermine
#

I don't understand what that could mean

#

The cancel_url is passed on creation. You don't know the id at that point. You use the magic value {CHECKOUT_SESSION_ID} so that when we redirect we replace with the correct id

elfin coral
restive ermine
elfin coral
#

ok thank you very much for your help today

restive ermine
#

of course, do you feel you have all you need?

elfin coral
#

yes. the url thing i'll just trial and error to see if i can get it to work the way i need. not an important part. thank you again