#blueish

1 messages · Page 1 of 1 (latest)

blazing eagleBOT
eternal mica
#

👋 happy to help

#

yes sure

#

you can use the payment_intent.client_secret of the invoice

prisma cove
#

how can I get that using the api?

eternal mica
#

when you retrieve the invoice you can expand on payment_intent

#

and then you would have access to the client_secret

prisma cove
#

ok thanks.

Another question , can I just use payment element just to save the payment method of a customer?

eternal mica
#

yes but instead of using a PaymentIntent you would use a SetupIntent

#

and instead of using confirmPayment you would use confirmSetup

prisma cove
#

that's great thanks a log