#Giriraj
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
hi i follow this link
https://stripe.com/docs/customer-management/portal-deep-links#create-a-flow
console.log of this. it's return me null value
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site 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.
This request failed because message: "This subscription cannot be updated because the subscription update feature in the portal configuration is disabled.",
https://dashboard.stripe.com/test/logs/req_gC1XdJbd9D4Rz4 you can check your log for full details
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
oh so how can i enable it?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i follow this link but empty response
requestId:
req_Je8JwL8NsKQUHr
i need to update subscription
What's the issue exactly?
You haven't passed the features[subscription_update] parameter in your request
You're also missing a products param: https://stripe.com/docs/api/customer_portal/configurations/create#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.
Yep, just shared that
products[prices] needs to be an array: prices: ['price_xxx']
Have you looked at the API reference for these parameters? There's a clear error in the payload you're sending to what the API expects: https://stripe.com/docs/api/customer_portal/configurations/create#create_portal_configuration-features-subscription_update-default_allowed_updates
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 checking
right now i m passing different price id and qty but still it's return Invalid string error
That's because default_allowed_updates expects a string/enum, not an array. See the link above
ok
checking
yes, that correct now. issue is resolved but now
but stripe.billingPortal.sessions is not creating
There must be an error returned. Please share
ok sure wait
here is have set enable is true
subscription_update: {
default_allowed_updates: [
"price"
],
products: [{
prices: ["price_1O65pWGas8wwyOqg95am1nnj"],
product: "prod_OttcOdSa0q0GOu"
}],
enabled: true,
}
you can look same thing on my screenshot
Can you share the ID (req_xxx) of the failing API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site 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.
You're omitting the configuration parameter (https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-configuration) so we use the account default which is managed here: https://dashboard.stripe.com/test/settings/billing/portal
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You must have subscription updates disabled there:
ok checking
yes, working fine but i can't able to switch plan
from above i m able to update qty. but i need to swich new plan
I suspect you haven't included a different prod_xxx/price_xxx ID that you want to upgrade/downgrade to in the payload
When you create the session you need to specify which plans you will allow them to switch to
where is that option?
you mean product here i have set new price id
Wait. You're creating a configuration via the API but not actually passing it when you create the session
You need to pass configuration.id to the session creation call: 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.
oh
let me check
still not able to switch with my new plan
https://pay.zutrax.com/p/session/test_YWNjdF8xTm5EQ1hHYXM4d3d5T3FnLF9PdjVFRFZzTFlZWGNHRUp0cUdocWwwdkVSdVNwTDE50100SEfOgi1W
my current plan is Bussiness i need to switch to Enterprise plan
both plan exist in one product
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
ok
Can you share the bps_xxx ID returned by the API?
No, bps_xxx
Yes, please be patient
Ok no problem
Still checking
ok
Ok, it's because you've set tax_behavior: 'unspecififed' on the Price object(s)
The portal doesn't allow updates to prices with unspecified value
Yep, either that on inclusive
ok
no still same i can't see new plan
https://pay.zutrax.com/p/session/test_YWNjdF8xTm5EQ1hHYXM4d3d5T3FnLF9PdjVrcE91eFkwdllSSDU1bGdtb3VRcUpUUzNlSlR10100QrvSdY1o
Can you just share the bps_xxx IDs please. The URLs aren't helpful
Ah, this is why:
Customers can’t define multiple Prices with the same product and recurring.interval values. For example, to offer a magazine product for either 4.00 USD per month or 3.00 USD per month for students, create a separate student magazine Product version.
The prices you're using are both monthly prices and have the same parent Product (prod_OttcOdSa0q0GOu). You need to model it differently, which each plan being it's own unique Product
oh let me try with new product
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
when i try with new product . it's return me this error
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
Here is the error message:
Invalid string: {:quantity=>"2", :price=>"price_1O65pWGas8wwyOqg95am1nnj"}
You need to pass an enum array and not object like you are sending
https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-default_allowed_updates
default_allowed_updates:['price', ...]