#marve

1 messages · Page 1 of 1 (latest)

spring coralBOT
cunning sigil
#

Good question, let me check

#

So yes, you can. You would need to expand (see here: https://stripe.com/docs/expand)) the payment_method object on the Payment Intent: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method. You would then look at the last4 field on the card hash: https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-last4

noble sparrow
#

O cool thanks!

#

@cunning sigil just double checking: the payment method id field would be empty but on expanding it, the card would be populated? Or is the id always there, even if saved or not saved?

cunning sigil
#

If the Payment Intent was successfully captured, then there should always be a Payment Method as far as I know.