#Markan97

1 messages · Page 1 of 1 (latest)

low arrowBOT
proper echo
#

I would like to make that PM the default automatically.

oblique dragon
#

👋 happy to help

#

that won't happen automatically

#

you'd have to listen to some webhook events and then call the Update Customer API and provide the invoice_settings.default_payment_method

proper echo
#

That would be ok if I use when the subscription is updated and watch the moment the subscription's status became active?

#

I don't know which webhook to use because we have a separate addition of payment methods in the app. The only thing that comes to mind is what I mentioned above.

oblique dragon
#

you can listen to invoice.paid events

proper echo
#

Yea that's awesome

oblique dragon
#

if the billing_reason is create_subscription

#

then you would do that logic

proper echo
#

I only use invoices for subscriptions

#

TY dude!

oblique dragon
#

if the billing_reason is create_subscription
it's just to avoid the logic being repeated in every subsequent invoice

proper echo
#

yes yes

#

awesome.

oblique dragon
#

let me know if you need any more help

proper echo
#

I'm good, you've saved a few hours of research for me! TY alot.