#abhishek-customerportal
1 messages · Page 1 of 1 (latest)
hello, you'll need to configure your Portal to certain Products: https://stripe.com/docs/api/customer_portal/configurations/create?lang=ruby#create_portal_configuration-features-subscription_update-products
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
opened!
thanks @solid sigil
So my use case is let's say there is two products A and B and both can have 3 prices each of monthly duration. Is this possible that user can switch price of a product A while keeping the product B's price as it is?
Can you give a bit more detail? Is your goal to allow them to never change product B and only change product A?
heya @kind elbow! unarchived as requested
thanks @mighty needle
No, they can change pricing of products individually. So, let's say I am subscribed to $10/mo on product A and $25/mo of product B. Now If I go to customer portal, of course I can see these two plans. Now If I go to update then if I hit update of product A then I should see only different pricings of product A not of product B
So, use case is let's say I want to upgrade to $20/mo plan ono product A
from $10/mo earlier
when I try to do it, Stripe says the pricing have same currency and billing period. Can't I have same product with different price value?
@modern trench you should be able to, can you share a link to the customer portal for your test customer so that i can take a look?
here the user is suppose to update the 3 product pricing individually
but if you click on any of the update plan button, you will see other product's price as well
@mighty needle
Hello, I will take over from here as Alex is offline
thanks @foggy glacier
Did you create this url by Dashboard?
Ah I see. Do you have access to Dashboard?
stripe dashboard? yes
Can you find the Customer Portal creation requests here? and paste me the request id
in the form of req_xxx
req_XpmIBrwdWBsTtD
That's the GET request. But I found the request to create Portal Session too. It looks normal to me as this Customer (cus_KU2XLwh6u6MG8T) currently subscribes to 3 different Subscriptions, so all of them are displayed on the Portal Session page. I can see they all have different Price, tights to different Products. What would you expect to be displayed different?
the display part is fine
only issue is while changing the plan
let me record a video
Click on "Update Plan", right?
yes
Then it display this
yes it should show only the pricing of that product
so let's say you hit "update plan" button for Sparrow SMS Pack
then you can update price of only Sparrow SMS Pack and hence can switch between $19. $29 and $39 /mo plan
but those prices are not shown
When I try to set it via stripe dashboard it says these prices has same billing period and currencies and hence can't be added again
Hmm I see $10, $29 and $29 here. Just don't want to mix up. What are $19 and $39 you are talking about?
so what you are seeing here is prices of other 2 products
while the other prices of Sparrow SMS pack are not shown
yes
And you can't add it in Dashboard? Where?
yes I can't let me show you
Can I see the error message?
Ah I got it now. So that screen is only permit 1 products
Okie for the Customer Portal, you are creating it directly via PHP right?
There is an object called Customer Portal Configuration, that you can create beforehand and pass it into the Creation of Customer Portal request
Inside Customer Portal Configuration, there is a place that seems to let you control which Products to display and to which price
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes I have tried that and it throws the same error
saying the added prices can't have same currency and billing duration
Hmm, the screenshare above, where is it? When you create a Billing Portal ?
Hmm I see, this seems to be a limitation on Customer Portal. Let me think in normal Subscription update, should I be able to change to a price within same interval or not
(I think I can), but let me try
ok thanks for your help @foggy glacier
Hmm I definitely can. Just updated a Customer from a Subscription Price to another Subscription Price with same interval
Sorry to say this but I think this is a limitation in Billing Portal. I would bring this back to internal report, and hope it will be considered
At the mean time, if you want to control over Product/Price in Subscription Update, you might want to build an interface yourself, and use Subscription Update API under the hood