#arrowcircle
1 messages · Page 1 of 1 (latest)
I see that I can create complex subscription with api, but how to do this with simple way?
What exactly are you trying to do, can you describe the result to me?
I want to create complex subscription, that consists of 3 metered products and one simple flat price product
Ok, and what is not working like you expect?
I want customer to select from 3 complx products and then redirect to stripe, probably, customer portal, to manage subscription
it's not possible to create complex products in pricing table
You will need to build that yourself, the pricing table support only single products in a subscription if i recall
Ideally, i am looking for a way to craft page on my site with links to customer portal or pricing table but with complex products. I am ok to build custom page, but cant find necessary docs for it
YOu're going to want to create your own checkout sessions directly for this kind of seetup
None of the no-code options support multiple price subscriptions like you describe
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, thanks. if i go this way, can I use cusomer portal still?
Not for the subscription management, no
For payment method management, yes
If subscriptions use any of the following, customers can only cancel them in the portal (they can’t update such subscriptions):
Multiple products
Usage-based billing
Sending invoices for collection. Read more about the collection_method parameter. If you use the Dashboard to create the subscription, you make this selection in the Payment method section.
Unsupported payment methods
So you can offer the portal for cancelling only
If you want that
but I can also cancel subscription via API, but how can I allow user to edit payment credentials on strip side if payment session is expired?
What do you mena by payment session expired?
If I create payment session, it may expires docs says. Does this mean, that payments will stop? Or if I store id of the session, I can always generate a link to stripe payment management until it cancelled?
No, the checkout session is valid for up to 24 (you can set it shorter)
That's just for the creation/setup though, it have nothing to do with cancelling the subscription
No, you don't use Checkout for payment method management, thats what the portal is for
hmmm, but then how can I generate a link to manage payment method?
in this case, what should I store to generate a link? Customer id? Subscription id?
This is part of the customer portal
for pricing questions, please contact support: https://support.stripe.com/contact
but it is possible manage subscription by id?