#suraj kumar
1 messages · Page 1 of 1 (latest)
Hi there
That's correct. You would need to retrieve the Customer to see what the default set on the Customer.
There is no property on the PaymentMethod object that indicates it is set as a default
Could you please guide me how to map customer object to paymentMethods
Adding one more point ,
i'm using setupIntent api to save payment methods. How can i set a method as default payment method
yes
Okay
And do you want the PaymentMethod to be used as the default for all Subscriptions for that Customer. Or do you want to set it specifically as the default for specific Subscriptions?
i want to set it for specific subscription
Okay then you want to actually pass the PaymentMethod ID as the default_payment_method when you create the Subscription itself: https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Please help here also
Hmm not sure what you mean by that exactly?
Can you clarify what you are trying to do/map?
No how to find customer's default payment method. i have customer Object and list of paymentMethods, now what next