#kun_api

1 messages ยท Page 1 of 1 (latest)

fossil patioBOT
#

๐Ÿ‘‹ 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.

west flame
#

๐Ÿ‘‹ 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

wide quarry
#

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

west flame
#

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?

wide quarry
#

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?

wide quarry
#

Thanks

west flame
#

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

wide quarry
#

So Billing portal is the best solution
i think I need to red the documentations for Billing Portal

#

can I have some important links?

west flame
wide quarry
#

Thanks

#

A quick question

fossil patioBOT
wide quarry
#

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?

bright tangle
#

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.

wide quarry
#

do you get my latest question

#

and I wanted to use stripe hosted pages

bright tangle
#

then you should use the Hosted Invoice URL

wide quarry
#

But for hosted inovice URl dont have the ability to redirect

#

Why I cant update my plan using billing portal with metered value?

bright tangle
#

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

wide quarry
#

Is the payment element works with fronted end ??

bright tangle
#

yes

wide quarry
#

So its like i will get a payment intent id and will use it on frotnend for 3ds

bright tangle
wide quarry
#

got it