#tjfriesen_16524

1 messages · Page 1 of 1 (latest)

empty laurelBOT
wraith dragon
#

Can you share where you create that link, and provide a test mode example link I can inspect?

#

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)

eternal ember
#

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

wraith dragon
#

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.

eternal ember
#

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.

wraith dragon
#

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

eternal ember
#

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?

wraith dragon
#

I can share feedback to offer this via portal, but the current feature options via the API don't appear to support this

eternal ember
#

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

wraith dragon
#

Looking to see if there's another way, but I don't think so currently.

wraith dragon
eternal ember
#

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......

wraith dragon
#

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

eternal ember
#

you are absolutely right

wraith dragon
#

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

eternal ember
#

ideally subscription id

#

but you have said it cant be done

#

so im trying to think of workaround

wraith dragon
#

whether or not the subscription has default_payment_method set

#

If it uses the customer default, you can send the link to update that

empty laurelBOT
wraith dragon
#

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.