Sample showing how to do a reauthorization
Retrieve the access token from OAuthTokenCredential by passing in ClientID and ClientSecret
Pass in a ApiContext
object to authenticate
the call and to send a unique request id
(that ensures idempotency). The SDK generates
a request id if you do not pass one explicitly.
Use this variant if you want to pass in a request id that is meaningful in your application, ideally a order id. String requestId = Long.toString(System.nanoTime(); APIContext apiContext = new APIContext(accessToken, requestId ));
Retrieve a authorization id from authorization object
by making a Payment Using PayPal
with intent
as authorize
. You can reauthorize a payment only once 4 to 29
days after 3-day honor period for the original authorization
expires.
Let's you specify a capture amount.
Reauthorize by POSTing to URI v1/payments/authorization/{authorization_id}/reauthorize
Load Configuration
Load SDK configuration for the resource. This intialization code can be done as Init Servlet.