#NandiniGopi

1 messages · Page 1 of 1 (latest)

twin nicheBOT
bitter mirage
#

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

brazen lion
#

yes

bitter mirage
brazen lion
#

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 .

bitter mirage
#

The expiration of the Checkout Session will be 24 hours

brazen lion
#

can we set it to 30 minutes or lesser than that?

#

DateTime expiryDateTime = DateTime.now().addSeconds(1800);
long expiryDate = expiryDateTime.getTime()/1000;

bitter mirage
#

Not with Payment Links, no.

#

You can only customize the expiration time when creating Checkout Sessions directly

brazen lion
#

ok

#

how can I change the guest into another user profile?

bitter mirage
#

That's not possible

brazen lion
#

ok

#

There is a Boolean value active for updating the link. so can use that?

bitter mirage
#

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

brazen lion
#

ok

#

when the checkout session recovery url will expire?

bitter mirage
#

What do you mean by a "checkout session recovery url"?

brazen lion
#

payment link or checkout session which is better?

bitter mirage
#

Totally depends on your use-case

#

Payment Links are meant for an easy one-to-many integration