New to the community? Welcome! Please read our Community Rules and Guidelines
If you want to report illegal content under the EU Digital Services Act, please do so here
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.