#mochi-defaultpm-subscription

1 messages ยท Page 1 of 1 (latest)

alpine ferryBOT
south isle
#

mochi-defaultpm-subscription

pastel temple
#

this is what it looks like

south isle
#

Hey @pastel temple try to provide actionable information all in one place. Also please don't share picture of codes, we're both developers, way easier to help you with real text
What I need for now is a clear example of an exact Subscription id sub_123 where it didn't work

pastel temple
#

sub_1MRjERBPM36OC3gXCk7z0ReI

south isle
#

thanks looking

#

it's all working totally fine

#

The screenshot you shared is for the Customer. The option you're using sets the default on the Subscription

#

if you look at that Subscription in the Dashboard it does have the right default

pastel temple
#

so does that mean come next billing cycle it will use that card again?

#

also what if the customer has a default payment method which one is used?

pastel temple
#

so does that mean come next billing cycle it will use that card again?

#

the reason I ask is because i forgot to set this and for subscriptions that were renewing now all the payments failed.

#

so I've been manually setting the default payment on the customer to fix this

#

also is there any easier way then to do this manually?

south isle
#

The link I just gave above explains the priority and how it will work. So yes it will work for future invoices

#

And you can write a script that will list all your subscriptions and for each one properly set the right PaymentMethod as the default based on what you see on the Customer.
Or do this at the Customer level.

#

Does that make sense?

pastel temple
#

I'm looking at the pm api and I can fiind a method which takes customer id and returns their payment methods

neon spindle
#

Hi there ๐Ÿ‘‹ taking over for @south isle

Is there a question that I'm overlooking here?

pastel temple
#

yea I was wondering how to get the payment methods for an existing customer

#

in all the api requests I have to pass in the pm

#

but I dont have a way of getting them

#

?

neon spindle
#

Taking a look now