#tjfriesen_16524
1 messages · Page 1 of 1 (latest)
Can you share where you create that link, and provide a test mode example link I can inspect?
The Customer Portal does support some deep link flows: https://docs.stripe.com/customer-management/portal-deep-links#what-is-a-flow
But the payment method update flow adjust the default payment method for the customer (applies to all subscriptions that don't have a subscription-specific default_payment_method)
right I dont want to update default pm on whole customer. ideally i can JUST adjust pm on sub by sub id.
and even more ideal, is a prebaked ui for it by sub_id
thanks for your help
Right, that's not currently possible using the portal. You would need to manage those individual subscription default payment methods for such a flow, at this time.
what do you mean?
explain to me how i can provide the user ability to update pm on the single sub they have access to.
I mean if they have multiple subs, the portal doesn't offer that option. You need to present them a list of their attached payment methods in your own UI and let them pick and you can update the default_payment_method on a specific subscription via the API
what if i want the payment method entry ui to be stripes, vs. my own custom FE. this way I dont have to write the ui for choices like google pay/ach/cc/ etc
sperately since it is possible to create the "update pm on sub" link via dashboard, will it likely be available to create/get via api soon?
I can share feedback to offer this via portal, but the current feature options via the API don't appear to support this
interesting
I'm at a loss on how to support this case without over-engineering.
any advice?
if i provide pm id, is there a getPMUpdateUrl API call
Looking to see if there's another way, but I don't think so currently.
Not sure what you mean by this, can you elaborate?
Hoping i could provide payment method id, to get a url to provide to user to update that payment method.
for example same starting point (subscription ID)
I go getSubscription(subID) -> this should either tell me uses default payment method OR a payment method ID
from there i either go to getdefaultPaymentMethod(getCustomer()) Or use the payment method ID from getSub call
To pass to api to generate a updatePaymentMethodURL to provide to customer.
Unfortunately even with that, IF the pm or default pm is on other subs it would update their too......
Hoping i could provide payment method id, to get a url to provide to user to update that payment method
But that PM is potentially/likely used by many subscriptions, so thats a bit different than what you were asking about updaing the PM for a specific subscription
ie, you'd want to pass a subscription ID, not a PM ID
you are absolutely right
I go getSubscription(subID) -> this should either tell me uses default payment method OR a payment method ID
This you can check yourself via the Subscription API
ideally subscription id
but you have said it cant be done
so im trying to think of workaround
whether or not the subscription has default_payment_method set
If it uses the customer default, you can send the link to update that
I've confirmed this currently only supported via the Dashboard, but shared feedback that you'd like to have the same option via the API.