public class AmazonPayClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected PayConfiguration |
payConfiguration |
protected Map<String,List<String>> |
queryParametersMap |
protected RequestSigner |
requestSigner |
| Constructor and Description |
|---|
AmazonPayClient(PayConfiguration payConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
AmazonPayResponse |
callAPI(URI uri,
String httpMethodName,
Map<String,List<String>> queryParameters,
String request,
Map<String,String> header)
API to process the request and return the
|
AmazonPayResponse |
deliveryTracker(net.sf.json.JSONObject payload)
The Delivery Tracker operation is used to track the delivery status
|
AmazonPayResponse |
deliveryTracker(net.sf.json.JSONObject payload,
Map<String,String> header)
The Delivery Tracker operation is used to track the delivery status
|
AmazonPayResponse |
getAuthorizationToken(String mwsAuthToken,
String merchantId,
Map<String,String> header)
The get Authorization Token operation is used to obtain retrieve a delegated authorization token
used in order to make API calls on behalf of a merchant.
|
protected final PayConfiguration payConfiguration
protected final RequestSigner requestSigner
public AmazonPayClient(PayConfiguration payConfiguration) throws AmazonPayClientException
AmazonPayClientExceptionpublic AmazonPayResponse deliveryTracker(net.sf.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
payload - header - AmazonPayClientExceptionpublic AmazonPayResponse getAuthorizationToken(String mwsAuthToken, String merchantId, Map<String,String> header) throws AmazonPayClientException
mwsAuthToken - merchantId - header - AmazonPayClientExceptionAmazonPayClient,
PayConfiguration,
Environmentpublic AmazonPayResponse deliveryTracker(net.sf.json.JSONObject payload) throws AmazonPayClientException
payload - AmazonPayClientExceptionpublic AmazonPayResponse callAPI(URI uri, String httpMethodName, Map<String,List<String>> queryParameters, String request, Map<String,String> header) throws AmazonPayClientException
uri - The uri that needs to be executedhttpMethodName - the HTTP request method(GET,PUT,POST etc) to be usedqueryParameters - the query parameters maprequest - the payload to be sent with the requestheader - the header of the solution providerAmazonPayClientExceptionCopyright © 2020. All rights reserved.