#erezmus

1 messages · Page 1 of 1 (latest)

uncut pantherBOT
unkempt rivet
#

Hi there

#

Yes this is possible. An invoice generates a PaymentIntent

#

So you can confirm that PaymentIntent directly without saving the PaymentMethod/attaching it to a Customer if you so desire

untold hazel
#

Hi, so I don't want the payment details to be attached to the customer in this case

#

ah wait

#

ok so the invoice generates the payment intent, i retrieve it and then just confirm it?

#

sorry misread your reply

#

so the api calls would be:
POST /v1/invoices
POST /v1/payment_intents/<payment_intent_id>/confirm

#

with payment_intent_id being the 'payment_intent' field returned from the invoice creation?

#

is that correct? thanks

unkempt rivet
#

Yep

#

That's correct

#

Should be pretty easy to test out