#Meddy-subscription
1 messages ยท Page 1 of 1 (latest)
๐ Happy to help
From the sample request, it only creates a subscription without a payment method. Could you elaborate more what you want to achieve?
we want to set payment_settings.save_default_payment_method to on_subscription
We need to do this automatically when the subscription is created
Thanks for sharing the details. From the subscription, the payment method is already saved to this subscription: https://dashboard.stripe.com/test/subscriptions/sub_1LWzqyGSWbsQg9W9ikkmNwkd
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
The screenshot you shared is customer's default payment method, not subscription default payment method
we need to automatically 'set as default' customers payment method
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
how do we do that? ๐
because if it's not 'set as default' then upon next invoice the customer won't be automatically charged of the subscription
The payment method is already set as subscription's default payment method, so customer will be charged. This is shown in link here: https://dashboard.stripe.com/test/subscriptions/sub_1LWzqyGSWbsQg9W9ikkmNwkd and the screenshot I shared earlier
You can use test clock to try future recurring payment and customer is expected to be charged in your current integration: https://stripe.com/docs/billing/testing/test-clocks
No the customer won't be charged if it's not set as default
we had this issue with another account on Stripe
we were told that we need to 'set as default' customers payment method to take charges automatically
What should we do to change the status of customers payment method to default?
It should work since subscription's default_payment_method is present in sub_1LWzqyGSWbsQg9W9ikkmNwkd: https://stripe.com/docs/api/subscriptions/object#subscription_object-default_payment_method
Could you share the sample subscription ID that didn't work?
If you wish to update customer's default payment method (other than the one on subscription default_payment_method), it can be done via invoice_settings.default_payment_method in update Customer API: https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
Sorry for too many questions... what's the difference between subscriptions default payment method and customers default payment method?
If one of the above is set, will the subscription be paid automatically?
- Subscription default payment method is the payment method that will be charged for this specific subscription
- Customer default payment method will only be used if subscription/invoice default payment method is not present
no problem! happy to help