New to the community? Welcome! Please read our Community Rules and Guidelines
In order to update a payment method that is associated with a Subscription you will need to use the following API:Subscription UpdatePHP 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.
©1999-2021 PayPal, Inc. All rights reserved.