#kun_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/1458308754402705408
📝 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.
- kun_api, 1 day ago, 42 messages
⛔️ Stripe developers have stepped away for a short while
Please leave your questions here, and we’ll respond as soon as we're back! If you need help urgently, you can contact Stripe support for help.
Hi! Looking into your question now. Thanks!
I see that you had previously created a ticket for this issue and my colleague replied to you. Are you still facing issues with this?
Yes let me explain here with more detail
I have two Plans for my products
1 PAYG
2 SUB
for both plans user redirects from my app build in (next.js)
to stripe hosted page then stripe handles 3DS and payments
When users comes and directly subscribe to PAYG or SUB it worked and I see on stripe dashboard "Active" Subscription.
but when I try to upgrade from PAYG to SUB my subscription, payment has some issues see the screenshots
Let me share the code for upgradation
Can I also get an example subscription ID (starts with sub_) please?
sure
sub_1SkyZlFrwl37tCGi5kwxgs0g
Sam allow me please 15 minutes dont close this chat
ill be back in hurry
I am back
The issue here is the same as what my colleague had described in the ticket.
You updated the subscription in this request: https://dashboard.stripe.com/acct_1E4JzvFrwl37tCGi/logs/req_OrqMnwxI6Qhjio
In the request you passed default_incomplete for the payment_behavior parameter. The definition of default_incomplete:
Use default_incomplete to transition the subscription to status=past_due when payment is required and await explicit confirmation of the invoice’s payment intent.
(Reference: https://docs.stripe.com/api/subscriptions/update#update_subscription-payment_behavior)
So the subscription went into past_due.
If you wish to charge the customer's saved payment method, you can use allow_incomplete instead.
Will this handle 3ds
Let me explain my question
If i add thus parameter allow_incomplete instead
And when stripe requires 3DS and it redirects to the hosted page
And then customer will charge automatically without any past dur or incomplete status??
If the payment for the invoice created from the subscription's update requires 3DS, the payment will fail. You can follow the steps here [0] on how to manage this.
Alternatively, an email can be sent to the customer if they need to complete 3D Secure authentication [1].
[0] https://docs.stripe.com/billing/subscriptions/overview#requires-action
[1] https://docs.stripe.com/invoicing/send-email#send-secure-emails
Why this only happens with upgrade subscription only
and without 3ds it failed to upgrade
Why this only happens with upgrade subscription only
This specifically happened due to the use ofdefault_incompletefor thepayment_behaviorparameter.
and without 3ds it failed to upgrade
What do you mean by this?
My colleague has also provided you with the workaround for subscription sub_1SkyZlFrwl37tCGi5kwxgs0g in the ticket:
The latest invoice now has auto_advance set to false. You would
- either need to set that value back to true and wait for around an hour for our system to charge your customer and pay the invoice,
- or you can simply call the /invoices/:id/pay on that invoice to manually trigger the payment.
Can you summaries me again to fullfill
1 while up-gradation of stripe subscription using strip hosted page it should handle 3DS
2 after up-gradation subscription will be active and charge 200 usd
thanks
When you are updating a subscription that requires payment you should be using payment_behavior: allow_incomplete. This will charge the customer's saved payment method.
If 3DS is required:
- Option 1: Send email to the customer (https://docs.stripe.com/invoicing/send-email#send-secure-emails)
- Option 2: Follow the steps here: https://docs.stripe.com/billing/subscriptions/overview#requires-action