#glovord

1 messages · Page 1 of 1 (latest)

proven chasmBOT
#

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.

glass onyx
#

Here is an example. stripe billing_portal sessions create --customer=cus_id creates a link to this page:

#

But If I click "edit button" near the subscription's PM, it will open page I need (subscriptions/sub_id/update-payment-method/changePaymentMethodFromHome is appended to the URL):

#

Can I generate a link programmatically to the page described in the second case?

lilac tundra
glass onyx
#

Yes, I saw this page. Looks like it doesn't contain flow for the PM update on individual subscription. It has some other "update/cancel" flows with subscriptions, or the flow to update the default PM for customer

proven chasmBOT
glass onyx
#

Alternatively, clicking the "edit" button won't be a problem. The problem is that if the subscription's PM is equal to the customer's default PM, this edit button is hidden for some reason. In that case we can't update PM of the subscription
So, that's why I want to open subscriptions/sub_id/update-payment-method/changePaymentMethodFromHome page directly

#

My rough solution to this problem is to generate a general link via stripe billing_portal sessions create --customer=cus_id. And manually (programmatically) append subscriptions/sub_id/update-payment-method/changePaymentMethodFromHome to the base link. It will work, but seems not reliable

torn laurel
#

Gotcha, checking in to whether we support this. I can put in a feature request if not. The button being hidden may have to do with your customer portal settings. Can you double check your dashboard settings for the customer portal updating subscriptions? I forget if there is a PaymentMethod specific setting

glass onyx
#

Looks like portal settings don't have any specific toggles for subscription PM. It only has settings for cancel/switch plan

torn laurel
#

Gotcha, and unfortunately it looks like we don't have a built in way to link directly to this. As mentioned I can write a feature request. Unfortunately in the meantime I don't think there is a good solution. As you mentioned you can build the URL though that URL could theoretically change without notice