#pl_api

1 messages ยท Page 1 of 1 (latest)

thick loomBOT
wheat siloBOT
#

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.

  • pl_api, 11 hours ago, 9 messages
  • pl_api, 12 hours ago, 13 messages
  • pl_api, 2 days ago, 28 messages
thick loomBOT
#

๐Ÿ‘‹ 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.

young meteor
#

<- Subscription payment methods cannot be changed / can be changed ->

teal cedar
#

It's the CustomerPortalConfiguration object, which you can pass in when creating a CustomerPortal

young meteor
#

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.

teal cedar
#

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?

young meteor
#

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?

teal cedar
#

That's what I am trying to locate ๐Ÿ˜… So you have tested and conclude it's the customer differences?

young meteor
#

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.

teal cedar
#

I see. Could you also provide 2 CustomerPortal from these customer which you see it can't change?

teal cedar
#

Thanks! Sorry I meant the Customer Portal Session Id

teal cedar
#

Nvm, it's bps_1PoGR5P7LyQtEQaSuxLwNsHq and bps_1PoGRPP7LyQtEQaSDNnPPnqm

#

You didn't enable subscription_update on the Configuration object

young meteor
#

โ†‘ bpc_1Ph4BBP7LyQtEQaSTmVKZPru
event: evt_1PoHGJP7LyQtEQaSlG6cNu4c

thick loomBOT
jolly tapir
#

๐Ÿ‘‹ 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

young meteor
#

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.

jolly tapir
#

In my own testing, the payment method will be shown if both of the following conditions are met:

  1. one of the subscription has default_payment_method and
  2. there is a default payment method set on invoice_settings.default_payment_method for the Customer
#

If none of the subscription has default_payment_method, the payment method edit option won't be available

young meteor
#

Displays up to the payment method list (means there is a default payment method for the customer).

jolly tapir
#

May I know what is the problem you're trying to address here?

young meteor
#

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.

jolly tapir
#

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?