#Vijay Deepak
1 messages · Page 1 of 1 (latest)
Can you share a cus_xxx where this is problematic?
cus_MikQeUe0iBEVQu
This sub I guess? sub_1LzIxOIWPQey6m2YBaTKh4ZC
Yes
Can you share the portal session ID? bps_xxx
bps_1LzJSxIWPQey6m2YD02wwVru
I suspect it's because the configuration you're using the create the session only offers upgrades to 2 USD prices
You can't change the currency of a customer: https://support.stripe.com/questions/setting-a-customers-default-currency
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
So that cus_MikQeUe0iBEVQu is a INR customer, and can't subscribe to USD prices
I'm not trying to change the currency. This is a INR customer and want to update quantity in INR.
This is the configuration i used to create the session:
com.stripe.param.billingportal.SessionCreateParams params = new com.stripe.param.billingportal.SessionCreateParams.Builder()
.setReturnUrl("")
.setCustomer(id)
.build();
com.stripe.model.billingportal.Session portalSession = com.stripe.model.billingportal.Session.create(params);
Yes, but the configuration you're passing when creating the session allows for users to upgrade/downgrade. Because those Price objects are USD, it's preventing the update button from being enabled
You need to pass the configuration parameter with the fields set to align with what you want to permit: 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.
Thanks for your help. I'll try this.