#sabsod

1 messages · Page 1 of 1 (latest)

granite plankBOT
tight wharf
#

I don't believe so. If the Invoice is from a subscription it will be treated as off session at least

dark gulch
#

is not for a subscription, is for a payment una tantum when customer cannot confirm payment

#

but we always create paymentIntent via Invoice when some customer purchase something and confirm payment online

#

so now i'm asking if is it possible also when payment is offline

tight wharf
#

well you can create + finalize the invoice and then pass off_session:true when you call the Confirm PaymentIntent API on the PaymentIntent from the Invoice(to attempt payment), I believe.

dark gulch
#

ok i understand

#

you mean set off_session:true here:

#

?

#

in update payment intent

#

?

tight wharf
#

your code is 'update payment intent', not 'update payment method'

dark gulch
#

sorry, of course, my mistake to write

tight wharf
#

and no, it's the Confirm PaymentIntent API, not the Update PaymentIntent.

dark gulch
#

so i just have to confirm?

#

and reading documentations, for confirm paymentIntent, i see attribute setup_future_usage, what i have to set in this attribute? I just want try to pay now, but offline.

tight wharf
#

nothing

dark gulch
#

ok