How to update the payment method token for existing subscription?
sskppbt
Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
May-27-2021
03:14 AM
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.
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- I want to implement subscription functionality. in REST APIs
- Mandatory Account Creation Hindering Customer Experience in REST APIs
- Receiving a PAYMENT.SALE.COMPLETED webhook notification - how can I trace the parent Subscription in REST APIs
- Webhook notifications are not being sent to my server in REST APIs
- Automatically change price of all existing subscriptions? in PayPal Payments Standard