Updating existing credit cards on paypal with Java REST api

169 Views Asked by At

I am trying to use paypal REST java api to make payments and other related operations in my application. The application is still in development mode (not live). So we are going with the paypal sandbox account.

I am able to do all operations with java REST api, other than updating an already registered card with paypal.

I don't see a method that accepts patch (as it is there for updating payment)

When I use the creditcard.upddate(authtoken) method, it always throws an exception that complains about MALFORMED_REQUEST.

Is the update feature implemented with credit cards, in java? (I am not seeing any examples anywhere)

If so how to do it? What am I missing?

I am using the rest-api-sdk 1.2.1

1

There are 1 best solutions below

2
On

You may want to check the REST API document here:

https://developer.paypal.com/docs/api/#update-a-stored-credit-card

This document does not directly explain how exactly the SDK works, but will give you some info so that you can check the request parameters.