#miriana

1 messages · Page 1 of 1 (latest)

void jacinthBOT
supple wind
#

Hi there!

#

At what moment do you want this information? After the payment is done?

late wing
#

yes

supple wind
#

If you look at the PaymentIntent, it should contain the payment_method used. And you could compare that payment method ID with the payment method the customer had previously.

late wing
#

where can I get the payment intent ? is it from frontend or backend?

supple wind
#

You can definitely get it on the backend. For the frontend I'm not sure, let me double check.

late wing
#

please

supple wind
late wing
#

http request to stripe?

supple wind
#

yes

late wing
#

ok cool thanks

#

"payment_method": null,

supple wind
#

Did you retrieve the PaymentIntent after the payment was made?

late wing
#

no no I was just checking the sample

supple wind
#

If there was no payment, then it's expected that "payment_method": null

late wing
#

ok but on usual cases there should be a payment method

supple wind
#

What do you mean by "usual cases"? If the status of the PaymentIntent is succeeded, then yes there will be a payment method set.