#kikko088_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/1285163494240555121
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
for the first question, when you do update the payment you need to pass the payment_behavior to default_incomplete https://docs.stripe.com/api/subscriptions/update#update_subscription-payment_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
this allows you to then send to your customer a link to your portal to collect the Payment Method
hello! uu this might be interesting, is the link returned in the response of the subscription.update()?
no not really
you need to build you custom page to collect the payment details
and send a custom link to your customer
another way you can handle this is by using the customer portal with deep links https://docs.stripe.com/customer-management/portal-deep-links
it's up to you to decide which flow you prefer to implement
probably the deep link would be even better, I will look into this and in case I'll post here again, many thanks for your help!
sure let me know if you need any more help