cancel
Showing results for 
Search instead for 
Did you mean: 

Who Me Too'd this topic

How to update the payment method token for existing subscription?

sskppbt
Moderator
Moderator

In order to update a payment method that is associated with a Subscription you will need to use the following API:
Subscription Update

PHP example:

$result = $gateway->subscription()->update('a_subscription_id', [
    'paymentMethodToken' => 'new_payment_method_token',
]);


This subscription update API requires you to know the ID of the subscription that you wish to update. Once you know that information you will be able to pass the new payment method that you wish to associate with this Subscription. 

Login to Me Too
Who Me Too'd this topic