#dineshkumar_unexpected
1 messages ¡ Page 1 of 1 (latest)
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.
- dineshkumar_docs, 5 days ago, 21 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1259925542195564594
đ Have more to share? Add details, code, screenshots, videos, etc. below.
I don't understand the question. Please spend a bit of time explaining yourself better with reproduction steps and API calls. Copy/pasting the same sentence over and over again is not helpful.
If i create subscription with payment_behavoir=default_incomplete and 100% off promocodeId , subsction status is active? or incomplete?
i got active, but i want incomplte fro above scenario for get confirmation from user on UI
var subscriptionOptions = new SubscriptionCreateOptions
{
Customer = customer.Id,
Items = subscriptionItems,
PaymentSettings = customer.InvoiceSettings.DefaultPaymentMethodId == null ? new SubscriptionPaymentSettingsOptions { SaveDefaultPaymentMethod = "on_subscription" } : null,
PaymentBehavior = "default_incomplete ",
PromotionCode = promocodeId
};
Why would the Subscription be incomplete? The $0 Price resolves and results in an active Subscription. There's no way around that
i want to save customer's default payment method if $0 Price for next Subscription
next billing for monthly Subscription i want auto payment, first month only we need to apply 100% off
Yup. You can do all that, but you can't have an incomplete subscription when the Price is $0 to start
how will auto payment happen ,for first time 100% off subsscription, if custmer's/subscription's default payment method is null?
You would have to create a Payment Method, attach it to the Customer, and set it do default. If no Payment Method is there, the payment fails and the Subscription become overdue
Our Flow is
- create subscription with 100% off promocode
- and then save default payment method after successful Subscription created.
upcoming auto renewals are will use Customer's default_payment method or Subscription's default_payment method?
Yup
i am asking, which one stripe take for auto reneval
Customer's default_payment method
or Subscription's default_payment method
Either. They're both used for the same thing. The Subscription's default PM takes precedence