#lil-nasty_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1275099191953199216
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Howdy
You want to use the payment_settings.save_default_payment_method parameter: https://docs.stripe.com/api/subscriptions/create#create_subscription-payment_settings-save_default_payment_method
That saves the payment method on the subscription though, right?
I want it to save on the customer
Ah then no, there is no parameter that does that automatically
So yeah just listening to webhooks is the correct way to go
Thank you! I'll work around it
๐
Is there a quick/dirty way to find the payment method that was used for the intial payment?
Maybe nested in the subscription?
Yeah you can retrieve the Subscription and expand the latest_invoice.payment_intent