#pl_api
1 messages ยท Page 1 of 1 (latest)
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.
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1273828543356342334
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
It's the CustomerPortalConfiguration object, which you can pass in when creating a CustomerPortal
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Subscription Object
cannot be changed: sub_1PnxSJP7LyQtEQaSQo2EWk5y
can be changed: sub_1PnE20P7LyQtEQaSnemu8AmF
It's the CustomerPortalConfiguration object, which you can pass in when creating a CustomerPortal
This uses the same configuration.
bpc_1Ph4BBP7LyQtEQaSTmVKZPru
{
id: 'bpc_1Ph4BBP7LyQtEQaSTmVKZPru',
object: 'billing_portal.configuration',
active: true,
application: null,
business_profile: {
headline: null,
privacy_policy_url: null,
terms_of_service_url: null
},
created: 1722061953,
default_return_url: null,
features: {
customer_update: {
allowed_updates: [ 'name', 'email', 'address', 'phone' ],
enabled: true
},
invoice_history: { enabled: true },
payment_method_update: { enabled: true },
subscription_cancel: {
cancellation_reason: {
enabled: true,
options: [ 'too_expensive', 'switched_service', 'unused', 'other' ]
},
enabled: true,
mode: 'at_period_end',
proration_behavior: 'none'
},
subscription_pause: { enabled: false },
subscription_update: {
default_allowed_updates: [],
enabled: false,
proration_behavior: 'always_invoice'
}
},
is_default: true,
livemode: false,
login_page: {
enabled: true,
url: 'https://billing.stripe.com/p/login/test_00gbL71hP6yM0Q86oo'
},
metadata: {},
updated: 1722061953
}
In a previous thread here on customer portal, we have heard that the availability of payment method changes in the payment method list and subscription payment method changes cannot be separated.
https://discord.com/channels/841573134531821608/1273648159771332759
I assume the difference is probably subscription or customer related, but I would like to know which parameter specifically.
Oh I see what you mean now
Um not sure but the not updatable one is created via Dashboard, isn't it?
Could be the customer
cus_QZ1ahW7JKznSLd as updatable Customer, cus_QfHzPtZYMiaULa as non-updatable Customer.
Can you try to create another Sub on each of them to verify the assumption?
Those that could not be updated were created from the dashboard, we were told.
However, I added a subscription created from the dashboard to the one customer who could renew it on my end, and that one was also able to renew.
| cus_QZ1ahW7JKznSLd as updatable Customer, cus_QfHzPtZYMiaULa as non-updatable Customer.
Is this determined from any parameters?
That's what I am trying to locate ๐ So you have tested and conclude it's the customer differences?
ok.
Two customers were created from the dashboard and subscriptions were created from the dashboard and from the api.
cus_QfbTEFG23TtDDL (sub_1PoGIcP7LyQtEQaSztJtvdiJ by dashboard)
cus_QfbTfBx07qTNY8 (sub_1PoGIwP7LyQtEQaSYz1fgfPq by api)
Neither could be changed from the customer portal.
I see. Could you also provide 2 CustomerPortal from these customer which you see it can't change?
Thanks! Sorry I meant the Customer Portal Session Id
Nvm, it's bps_1PoGR5P7LyQtEQaSuxLwNsHq and bps_1PoGRPP7LyQtEQaSDNnPPnqm
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
You didn't enable subscription_update on the Configuration object
Yes, payment_method_update=true, subscription_update=false
Even in this case, the subscription payment method can be changed. This is the answer we received in our previous enquiry.
This is a screen shot of the same portal configuration, but with different users.
cus_QZ1ahW7JKznSLd
https://billing.stripe.com/p/session/test_YWNjdF8xT3lSNmxQN0x5UXRFUWFTLF9RZmNWd2QwOUZpcjV5SmVXNjhnUUNBSDZ6VWhybkZn0100qge1UcF9
โ bpc_1Ph4BBP7LyQtEQaSTmVKZPru
event: evt_1PoHGJP7LyQtEQaSlG6cNu4c
๐ Taking over this thread, catching up now
Thanks for waiting! The issue is likely that the default_payment_method is available on the Subscription itself, e.g. https://dashboard.stripe.com/test/subscriptions/sub_1PoG9wP7LyQtEQaSxxXoZJox, instead of using the invoice_settings.default_payment_method on the Customer, so the payment method will be available to change on the subscription level
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
The customer has several subscriptions
Only one subscription default payment method is enabled, I think it is the customer's invoice_settings otherwise.
sub_1PoG9wP7LyQtEQaSxxXoZJox
Billing method: Charge specific payment method
sub_1PoG9vP7LyQtEQaStwbaR3jc
Billing method: Charge default payment method
sub_1PnE20P7LyQtEQaSnemu8AmF
Billing method: Charge default payment method
sub_1PnE0XP7LyQtEQaS0228HHLf
Billing method: Charge default payment method
However, all subscription payment methods can be changed on the customer portal screen.
https://billing.stripe.com/p/session/test_YWNjdF8xT3lSNmxQN0x5UXRFUWFTLF9RZmN2WmV4ZDBOMVlsekZUZXlEUzlyYXRxTE1sVjZB01000WMfaZ5s
Change the locale.
In my own testing, the payment method will be shown if both of the following conditions are met:
- one of the subscription has
default_payment_methodand - there is a default payment method set on
invoice_settings.default_payment_methodfor the Customer
If none of the subscription has default_payment_method, the payment method edit option won't be available
sub_1PoG9wP7LyQtEQaSxxXoZJox
Billing method: Charge specific payment method
Cancel subscriptions with billing_method=Charge specific payment method in the previous comment, so that there are no subscriptions with default_payment_method (i.e. all subscriptions with billing_method = Charge default payment method), but they are all marked as edited.
https://billing.stripe.com/p/session/test_YWNjdF8xT3lSNmxQN0x5UXRFUWFTLF9RZmRFSmtZdEdPZG9zeTNZaXNsaHV3cTdkS2trcERs0100wCQ7evdS?locale=en-US
Displays up to the payment method list (means there is a default payment method for the customer).
May I know what is the problem you're trying to address here?
The background is that you can let them edit the payment method, but you do not want them to change the payment method of the subscription.
We have already heard that it is not possible to make the subscription payment method unchangeable while leaving the subscription payment method changeable on top of that.
from: https://discord.com/channels/841573134531821608/1273648159771332759
However, we have identified customers who are able to display the subscription payment method unchanged, while payment method update remains possible.
#1273828543356342334 message
I keep asking which attributes of the data are caused by different things.
Its customer ID and customer portal settings are as follows.
#1273828543356342334 message
#1273828543356342334 message
Thanks for sharing the background information.
I keep asking which attributes of the data are caused by different things
I'm afraid we don't have necessary expertise with the attributes that control whether and how the payment method can be edited in a Customer Portal. Can I suggest you writing to Support https://support.stripe.com/contact, so that we can check with relevant team and get back to you?