#marve
1 messages · Page 1 of 1 (latest)
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
If the Payment Intent was successfully captured, then there should always be a Payment Method as far as I know.