#suraj kumar

1 messages · Page 1 of 1 (latest)

marsh harborBOT
calm elbow
#

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

surreal dove
#

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

calm elbow
#

Let's back up.

#

First, are you using Invoices/Subscriptions?

surreal dove
#

yes

calm elbow
#

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?

surreal dove
#

i want to set it for specific subscription

calm elbow
surreal dove
#

okay

#

got it

surreal dove
calm elbow
#

Hmm not sure what you mean by that exactly?

#

Can you clarify what you are trying to do/map?

surreal dove
#

No how to find customer's default payment method. i have customer Object and list of paymentMethods, now what next

marsh harborBOT
calm elbow
#

Well you aren't setting a default on the Customer

#

You are setting it on the Subscription

#

Based on the above