#Molly-PM
1 messages · Page 1 of 1 (latest)
Yes you can list PaymentMethod belongs to a specific customer. Inside the object you should have the type (card) and its last4
Sorry, do you mind showing where it is
there is no object information in webhook
Okie, first you list PaymentMethods on Customer: https://stripe.com/docs/api/payment_methods/customer_list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Then you have PaymentMethod object which has last4 inside 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.
Can I get it according to the checkout session ID?
Sure, from Checkout Session ID you find the PaymentIntent first
then find the PaymentMethod used to confirm that PaymentIntent
Hello, I am stepping out for the day. If you have further questions please ask in the channel