#sai_rez-confirmCardSetup-confirmCardPayment-diff

1 messages · Page 1 of 1 (latest)

coral bough
fickle bone
#

Whether you are confirming a SetupIntent or a PaymentIntent. SetupIntents are for saving a card without payment, PaymentIntents are for taking a payment and can save a card

hardy robin
#

Yea I saw that thanks

#

I had another question, does the payment Intent object come from an invoice or can it be retrieved another way?

rose basalt
#

Invoices do have underlying Payment Intents, but they can also be created as standalone objects (separate from Invoices)

hardy robin
#

Can they be retrieved separately from the invoice?

rose basalt
#

What do you mean? Like are you starting with a Payment Intent ID (pi_xxx) and you just want to retrieve it w/o also retrieving the invoice?

hardy robin
#

Yes, or does an existing payment intent have to be part of the invoice?

rose basalt
hardy robin
#

I'm guessing that's not possible through the client sdk?

#

On the client side, is it possible to update the default payment method after running confrimCardPayment?

rose basalt
#

it is not possible to update the default payment method client-side - it has to be done server-side\

hardy robin
#

Ah okay

#

To retrieve the payment intent, wouldn't you need the payment intent to get the secret?