#dineshkumar6419
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- dineshkumar6419, 23 hours ago, 26 messages
- dineshkumar6419, 1 day ago, 10 messages
- dineshkumar6419, 1 day ago, 22 messages
- dineshkumar6419, 3 days ago, 10 messages
Hi there ๐ which of those flows are you currently working on, adding a new Payment Method or updating an existing one, and where are you getting stuck with that? You can't do either from purely client-side code, you will need server-side components for that as well.
i created subscription with this option SaveDefaultPaymentMethod = "on_subscription" after sccessful payment DefaultPaymentMethodID availbe only the subsciption object not a customer object, i want also save DefaultPaymentMethodID in customer. please help me
You can update the Customer object then, and provide the ID of the Payment Method to the invoice_settings.default_payment_method
https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
You will need to make that request from server-side code.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok got ii, thanks!
Any time!
My teammates have previously provided you with the guide for doing that:
https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements
Is there something in there that is unclear, or that is giving you trouble?