#Mustafa
1 messages · Page 1 of 1 (latest)
Hi there!
Hi
Can you share the customer ID (cus_xxx)?
cus_OnZBZQgH3wJPwk
I tried to retrieve the attached plans to this configuration but the configuration object is not showing the product id and plan id.
you have to expand this field when retrieving it https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products
expand:["features.subscription_update.products"]
Okay
Why doesnt this plan show in the customer portal?
Can you please help me with this?
<Configuration billing_portal.configuration id=bpc_1NzeOiJIX39BcHBWqiBvFP6B at 0x16cc167f0> JSON: {
"active": true,
"application": null,
"business_profile": {
"headline": null,
"privacy_policy_url": "https://internal.systematicventures.com/privacy-policy/",
"terms_of_service_url": "https://internal.systematicventures.com/terms-of-service/"
},
"created": 1696938408,
"default_return_url": null,
"features": {
"customer_update": {
"allowed_updates": [
"name",
"address",
"shipping",
"phone"
],
"enabled": true
},
"invoice_history": {
"enabled": true
},
"payment_method_update": {
"enabled": true
},
"subscription_cancel": {
"cancellation_reason": {
"enabled": false,
"options": [
"too_expensive",
"missing_features",
"unused",
"customer_service",
"other"
]
},
"enabled": true,
"mode": "at_period_end",
"proration_behavior": "none"
},
"subscription_pause": {
"enabled": false
},
"subscription_update": {
"default_allowed_updates": [
"price"
],
"enabled": true,
"products": [
{
"prices": [
"price_1NvE3mJIX39BcHBW0iJQSmNY"
],
"product": "prod_OifGKb0OdMCtVi"
}
],
"proration_behavior": "none"
}
},
"id": "bpc_1NzeOiJIX39BcHBWqiBvFP6B",
"is_default": false,
"livemode": false,
"login_page": {
"enabled": false,
"url": null
},
"metadata": {},
"object": "billing_portal.configuration",
"updated": 1696938408
}
I can see the attached plan
aren't they already on that plan?
No, I cancelled the plan
the configuration object allows switching to price_1NvE3mJIX39BcHBW0iJQSmNY, which is the plan they're already on
I want that whenever the user comes to the portal, he should be able to renew that plan again
Currently no plan is shown so customer can't renew
what does cancel/renew mean?
The portal can not create a new subscription
it can only manage an exisitng subscription
you'd use Checkout or a payment form to start a new subscription if the Customer has no Subscription currently (perhaps due to a previous one being cancelled)
Got it