#dineshkumar_code
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, 4 days ago, 58 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/1255421991633031179
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Can you tell me why you want the subscription's status to be incomplete?
our requirement scenario is first create subscription incomplete and then confirm from user using stripe.cnfirm js method https://docs.stripe.com/js/setup_intents/confirm_setup
but i additiona;y add now PromotionCode = "promo_1PVZPrBUmBAZBIgtP0mGH04Z" param in scbscriptionscreateoption it's activated when i set paymentbehavior is incomplete why? please advise
I still don't understand why you want the subscription to be incomplete.
Also setting payment_behaviour to default_incomplete tells Stripe to set status incomplete if the first invoice can't be paid. However, promo_1PVZPrBUmBAZBIgtP0mGH04Z gives 100% off, which means that the first invoice doesn't need to pay. And therefore the subscription status is active
we create the subscription incomplete, because user need to enter card details through stripe element
https://docs.stripe.com/api/subscriptions/create#create_subscription-payment_behavior you can read this to learn more about 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.
If that's what you want to achieve, I'd suggest you to use SetupIntent + PaymentElement to collect the card details from customer.
so 100%off w edon't need enter card details, correct?
It means no payment is needed. If you want to collect a payment method for the subscription, use pending_setup_intent https://docs.stripe.com/api/subscriptions/object#subscription_object-pending_setup_intent
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 i will check and come back if need any help