#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/1458786238004723900
๐ 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_webhooks, 19 minutes ago, 23 messages
- kun_api, 1 day ago, 27 messages
- kun_api, 3 days ago, 42 messages
๐ Hi there! I would say that the billing portal would be the simplest for these requirements
What issues are you having with it?
subscription_update still needs products configured in portal settings
If you want customers to choose a new product, then I think it makes sense that you have to specify which products they can choose
Using Inovice hosted page will it be a good solution?
because with billing portal I am getting an error while upgrading the plan
and the error is "metered_value"
in one plan metered value exists and to other plan it does not exists
The Hosted Invoice Page is for paying invoices, rather than changing Subscription configuration
Do you have a screenshot of the error you're getting on the billing portal?
No unfortunately I did not saved it
Stripe recommendation is using billing portal?
right
is there any way we can redirect back from hosted invoice url?
Yes
Let me check
Thanks
I don't think it's possible. We show the confirmation screen once it's paid, but there are no configurable links there on the Hosted Invoice Page
So Billing portal is the best solution
i think I need to red the documentations for Billing Portal
can I have some important links?
Sure. The documentation starts here: https://docs.stripe.com/customer-management
But if you want a customer to manage a specific subscription, so they can update it, a subscription_update deep link will be useful: https://docs.stripe.com/customer-management/portal-deep-links
My setup:
PAYG subscription with a metered overage price
User clicks "Upgrade" to switch to $200/month fixed plan
Need to handle 3DS and redirect back to my app after payment
What I've tried:
Billing Portal โ Error: "cannot update subscription with metered items"
Hosted Invoice URL โ
Works, but no return_url support
Checkout Session โ Creates new subscription, can't update existing
Question:
Is there any Stripe-hosted solution that can update a subscription containing metered items AND redirect back to my app after payment? Or is Stripe.js confirmCardPayment() the only option for redirect control in this scenario?
hi there!
sure, directly update the Subscription object. then you'll get a new Invoice. Stripe will automatically try to pay that invoice if the customer has a default payment method. If not, you can use the Payment Element to pay for the PaymentIntent contained in the Invoice.
then you should use the Hosted Invoice URL
But for hosted inovice URl dont have the ability to redirect
Why I cant update my plan using billing portal with metered value?
But for hosted inovice URl dont have the ability to redirect
correct, that's why I suggested using the Payment Element
Why I cant update my plan using billing portal with metered value?
that's a limitation of the Billing Portal
Is the payment element works with fronted end ??
yes
you can learn more about the Payment Element here: https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements
So its like i will get a payment intent id and will use it on frotnend for 3ds
it depends what you want to do exactly. if the subscription update only requires 3DS, then you don't need the Payment Element. you can just call this to trigger the 3DS flow: https://docs.stripe.com/js/payment_intents/confirm_card_payment#stripe_confirm_card_payment-attached
got it