#shahriyar_api
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/1263485874226860055
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- shahriyar_api, 1 hour ago, 16 messages
Hello
A Subscription will only charge a PaymentMethod that is set as the default for the Subscription or for the Customer
If a PaymentMethod is just attached to a Customer but not set as the default in either place then no, the Subscription will not attempt to charge that PaymentMethod
You can test this all out using test clocks: https://docs.stripe.com/billing/testing/test-clocks
So when creating subscription user selects a card, if that card is not present when period ends, the subscription ends
What if the user selected a card thats not deleted but is set to default for that specific subscription
The Subscription would enter your retry schedule and then cancel if that is what your settings indicate after the retries expire
Not sure what this means?
What do you actually do when the "user selected a card"
Do you update the default on the Subscription?
I mean the user added 2 card in his account, none of then is set default
Then none will be charged
So only first time the subscription will be charge the card
next month if there is no default then no charge
Yes
Then how do I manage 2 different subscription for same customer with 2 diffrent payment method
Card 1 -> Sub 1
Card 2 -> Sub 2
I want Sub 1 to charge only card 1 and sub 2 to charge card 2
You set the default per-Subscription: https://docs.stripe.com/api/subscriptions/create#create_subscription-default_payment_method
Instead of setting at the Customer level
So like this?
I think I got this now