cancel
Showing results for 
Search instead for 
Did you mean: 

How to update the payment method token for existing subscription?

Options
sskppbt
Moderator
Posted on

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. 

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.