#hakiros
1 messages · Page 1 of 1 (latest)
Depends on how you have the products modelled. Sounds like you'd just need to manage 2 separate portal configurations which allow the correct Products/Prices for the 'user' and 'seller' and then apply the appropriate configuration when creating the portal session
user and seller's subscriptions and two different products. Monthly and yearly subscriptions are same products but different pricings (different lookup_key)
so we have user_sub with pricing user-subscription-monthly
and user-subscription-yearly
same for seller
Yup, then you should be able to manage this with separate portal configs: https://stripe.com/docs/api/customer_portal/configurations/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Specific parameters: https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
The idea is you pass in the products/prices you want that configuration to support for updates
Then you'd pass the corresponding bpc_xxx to configuration parameter when you create a session: https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-configuration
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So bpc_abc for users, bpc_xyz for sellers each with the correct product/price mapping that you need
is there a way to do this without code? I potentialy want to let website owners to change some things in stripe without changes in code
Not with the no-code portal as it only supports a default configuration (that you configure in the Dashboard)
ok, I have one more question - what about payments for subscription, is it possible to turn on more payments options, than just credit card? In case of normal payment for an service I have configured for example blik or p24 beside credit card