| Package | Description |
|---|---|
| com.amazon.pay.api |
| Modifier and Type | Method and Description |
|---|---|
static PrivateKey |
Util.buildPrivateKey(char[] privateKey)
Builds the PrivateKey object from the private key provided
|
AmazonPayResponse |
AmazonPayClient.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 |
WebstoreClient.cancelCharge(String chargeId,
net.sf.json.JSONObject payload)
The cancelCharge operation is used to cancel Charges.
|
AmazonPayResponse |
WebstoreClient.cancelCharge(String chargeId,
net.sf.json.JSONObject payload,
Map<String,String> header)
The cancelCharge operation is used to cancel Charges.
|
AmazonPayResponse |
WebstoreClient.captureCharge(String chargeId,
net.sf.json.JSONObject payload)
The CaptureCharge operation is used to create a charges for a buyer
and pass the Id as part of button click.
|
AmazonPayResponse |
WebstoreClient.captureCharge(String chargeId,
net.sf.json.JSONObject payload,
Map<String,String> header)
The CaptureCharge operation is used to create a charges for a buyer
and pass the Id as part of button click.
|
AmazonPayResponse |
InstoreClient.charge(net.sf.json.JSONObject chargeRequest)
Helps the merchant make the charge request
|
AmazonPayResponse |
InstoreClient.charge(net.sf.json.JSONObject chargeRequest,
Map<String,String> header)
Helps the solution provider make the charge request with their auth token
|
AmazonPayResponse |
WebstoreClient.closeChargePermission(String chargePermissionId,
net.sf.json.JSONObject payload)
The CloseChargePermission operation Moves the Charge Permission to a Closed state.
|
AmazonPayResponse |
WebstoreClient.closeChargePermission(String chargePermissionId,
net.sf.json.JSONObject payload,
Map<String,String> header)
The CloseChargePermission operation Moves the Charge Permission to a Closed state.
|
AmazonPayResponse |
WebstoreClient.completeCheckoutSession(String checkoutSessionId,
net.sf.json.JSONObject payload)
The CompleteCheckoutSession operation is used to confirm completion of a checkout session.
|
AmazonPayResponse |
WebstoreClient.completeCheckoutSession(String checkoutSessionId,
net.sf.json.JSONObject payload,
Map<String,String> header)
The CompleteCheckoutSession operation is used to confirm completion of a checkout session
|
String |
SignatureHelper.createCanonicalRequest(URI uri,
String httpMethodName,
Map<String,List<String>> parameters,
String requestPayload,
Map<String,List<String>> preSignedHeaders)
Creates a string that includes the information from the request in a standardized(canonical) format.
|
AmazonPayResponse |
WebstoreClient.createCharge(net.sf.json.JSONObject payload)
The CreateCharge operation is used to create a charges for a buyer
and pass the Id as part of button click.
|
AmazonPayResponse |
WebstoreClient.createCharge(net.sf.json.JSONObject payload,
Map<String,String> header)
The CreateCharge operation is used to create a charges for a buyer
and pass the Id as part of button click.
|
AmazonPayResponse |
WebstoreClient.createCheckoutSession(net.sf.json.JSONObject payload)
The CreateCheckoutSession operation is used to create a CheckoutSession for a buyer
and pass the Id as part of button click.
|
AmazonPayResponse |
WebstoreClient.createCheckoutSession(net.sf.json.JSONObject payload,
Map<String,String> header)
The CreateCheckoutSession operation is used to create a CheckoutSession for a buyer
and pass the Id as part of button click.
|
Map<String,List<String>> |
SignatureHelper.createPreSignedHeaders(URI uri,
Map<String,String> header)
Creates the mandatory headers required in the request
|
AmazonPayResponse |
WebstoreClient.createRefund(net.sf.json.JSONObject payload)
The CreateRefund operation is used to create a refund for a buyer
and pass the Id as part of button click.
|
AmazonPayResponse |
WebstoreClient.createRefund(net.sf.json.JSONObject payload,
Map<String,String> header)
The CreateRefund operation is used to create a refund for a buyer
and pass the Id as part of button click.
|
AmazonPayResponse |
AmazonPayClient.deliveryTracker(net.sf.json.JSONObject payload)
The Delivery Tracker operation is used to track the delivery status
|
AmazonPayResponse |
AmazonPayClient.deliveryTracker(net.sf.json.JSONObject payload,
Map<String,String> header)
The Delivery Tracker operation is used to track the delivery status
|
String |
AmazonPayClient.generateButtonSignature(net.sf.json.JSONObject payload)
generateButtonSignature is a convenience method to assist the developer in generating static signatures
that can be used by Checkout v2's amazon.Pay.renderButton method.
|
String |
AmazonPayClient.generateButtonSignature(String payload)
generateButtonSignature is a convenience method to assist the developer in generating static signatures
that can be used by Checkout v2's amazon.Pay.renderButton method.
|
AmazonPayResponse |
AmazonPayClient.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.
|
AmazonPayResponse |
WebstoreClient.getBuyer(String buyerToken)
Get Buyer details can include buyer ID, name, email address, postal code, and country code
when used with the Amazon.Pay.renderButton 'SignIn' productType and corresponding signInScopes.
|
AmazonPayResponse |
WebstoreClient.getBuyer(String buyerToken,
Map<String,String> header)
Get Buyer details can include buyer ID, name, email address, postal code, and country code
when used with the Amazon.Pay.renderButton 'SignIn' productType and corresponding signInScopes.
|
String |
SignatureHelper.getCanonicalizedQueryString(Map<String,List<String>> parameters)
Generates a canonical string that consists of all the query parameters
|
AmazonPayResponse |
WebstoreClient.getCharge(String chargeId)
The getCharge operation is used to get charges details that contain
|
AmazonPayResponse |
WebstoreClient.getCharge(String chargeId,
Map<String,String> header)
The getCharge operation is used to get charges details that contain
|
AmazonPayResponse |
WebstoreClient.getChargePermission(String chargePermissionId)
The GetChargePermission operation is used to get the complete details of ChargePermission.
|
AmazonPayResponse |
WebstoreClient.getChargePermission(String chargePermissionId,
Map<String,String> header)
The GetChargePermission operation is used to get the complete details of ChargePermission.
|
AmazonPayResponse |
WebstoreClient.getCheckoutSession(String checkoutSessionId)
The GetCheckoutSession operation is used to get checkout session details that contain
all session associated details.
|
AmazonPayResponse |
WebstoreClient.getCheckoutSession(String checkoutSessionId,
Map<String,String> header)
The GetCheckoutSession operation is used to get checkout session details that contain
all session associated details.
|
static org.apache.http.client.methods.HttpUriRequest |
Util.getHttpUriRequest(URI uri,
String httpMethodName,
String payload)
Returns the HttpUriRequest object based on the given HTTP Method Name and URI specification.
|
AmazonPayResponse |
WebstoreClient.getRefund(String refundId)
The getRefund operation is used to get refund details that contain
|
AmazonPayResponse |
WebstoreClient.getRefund(String refundId,
Map<String,String> header)
The getRefund operation is used to get refund details that contain
|
static URI |
Util.getServiceURI(PayConfiguration payConfiguration,
String action)
To get the service URI
|
AmazonPayResponse |
InstoreClient.merchantScan(net.sf.json.JSONObject scanRequest)
Helps the merchant make the merchantScan request
|
AmazonPayResponse |
InstoreClient.merchantScan(net.sf.json.JSONObject scanRequest,
Map<String,String> header)
Helps the solution provider make the merchantScan request with their auth token
|
AmazonPayResponse |
InstoreClient.refund(net.sf.json.JSONObject refundRequest)
Helps the merchant make the refund request
|
AmazonPayResponse |
InstoreClient.refund(net.sf.json.JSONObject refundRequest,
Map<String,String> header)
Helps the solution provider make the refund request with their auth token
|
PayConfiguration |
PayConfiguration.setPrivateKey(char[] privateKey) |
PayConfiguration |
PayConfiguration.setPrivateKey(String privateKey)
Deprecated.
This method is deprecated, instead use setPrivateKey(char[] privateKey)
|
Map<String,String> |
RequestSigner.signRequest(URI uri,
String httpMethodName,
Map<String,List<String>> queryParameters,
String requestPayload,
Map<String,String> header)
Signs the request provided and returns the signed headers map
|
AmazonPayResponse |
WebstoreClient.updateChargePermission(String chargePermissionId,
net.sf.json.JSONObject payload)
The UpdateChargePermission operation is used to update the metadata of the ChargePermission.
|
AmazonPayResponse |
WebstoreClient.updateChargePermission(String chargePermissionId,
net.sf.json.JSONObject payload,
Map<String,String> header)
The UpdateChargePermission operation is used to update the metadata of the ChargePermission.
|
AmazonPayResponse |
WebstoreClient.updateCheckoutSession(String checkoutSessionId,
net.sf.json.JSONObject payload)
The UpdateCheckoutSession operation is used to update payment details for a session.
|
AmazonPayResponse |
WebstoreClient.updateCheckoutSession(String checkoutSessionId,
net.sf.json.JSONObject payload,
Map<String,String> header)
The UpdateCheckoutSession operation is used to update payment details for a session.
|
static String |
Util.urlEncode(String value,
boolean path)
Generates a url encoded string from the given string
|
| Constructor and Description |
|---|
AmazonPayClient(PayConfiguration payConfiguration) |
InstoreClient(PayConfiguration payConfiguration) |
RequestSigner(PayConfiguration payConfiguration) |
WebstoreClient(PayConfiguration payConfiguration) |
Copyright © 2021. All rights reserved.