#NandiniGopi
1 messages · Page 1 of 1 (latest)
Hello!
What's up
You said: Does anyone know the checkout session URL expiry time changing ?
if I create a payment link, how can I add a customer who is not a guest and an expiry date for it
yes
If you want a Customer created when using a Payment Link you set customer_creation to always: https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-customer_creation
also I need to know , if I create a payment link, how can I add a customer who is not a guest and an expiry date for it .
The expiration of the Checkout Session will be 24 hours
can we set it to 30 minutes or lesser than that?
DateTime expiryDateTime = DateTime.now().addSeconds(1800);
long expiryDate = expiryDateTime.getTime()/1000;
Not with Payment Links, no.
You can only customize the expiration time when creating Checkout Sessions directly
That's not possible
Yes you can use that to inactivate the link itself
However if a Checkout Session has already been started then that Session will still be active
What do you mean by a "checkout session recovery url"?
payment link or checkout session which is better?