public class WebstoreClient extends AmazonPayClient
payConfiguration, requestSigner| Constructor and Description |
|---|
WebstoreClient(PayConfiguration payConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
AmazonPayResponse |
cancelCharge(String chargeId,
net.sf.json.JSONObject payload)
The cancelCharge operation is used to cancel Charges.
|
AmazonPayResponse |
cancelCharge(String chargeId,
net.sf.json.JSONObject payload,
Map<String,String> header)
The cancelCharge operation is used to cancel Charges.
|
AmazonPayResponse |
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 |
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 |
closeChargePermission(String chargePermissionId,
net.sf.json.JSONObject payload)
The CloseChargePermission operation Moves the Charge Permission to a Closed state.
|
AmazonPayResponse |
closeChargePermission(String chargePermissionId,
net.sf.json.JSONObject payload,
Map<String,String> header)
The CloseChargePermission operation Moves the Charge Permission to a Closed state.
|
AmazonPayResponse |
completeCheckoutSession(String checkoutSessionId,
net.sf.json.JSONObject payload)
The CompleteCheckoutSession operation is used to confirm completion of a checkout session.
|
AmazonPayResponse |
completeCheckoutSession(String checkoutSessionId,
net.sf.json.JSONObject payload,
Map<String,String> header)
The CompleteCheckoutSession operation is used to confirm completion of a checkout session
|
AmazonPayResponse |
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 |
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 |
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 |
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.
|
AmazonPayResponse |
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 |
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 |
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 |
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.
|
AmazonPayResponse |
getCharge(String chargeId)
The getCharge operation is used to get charges details that contain
|
AmazonPayResponse |
getCharge(String chargeId,
Map<String,String> header)
The getCharge operation is used to get charges details that contain
|
AmazonPayResponse |
getChargePermission(String chargePermissionId)
The GetChargePermission operation is used to get the complete details of ChargePermission.
|
AmazonPayResponse |
getChargePermission(String chargePermissionId,
Map<String,String> header)
The GetChargePermission operation is used to get the complete details of ChargePermission.
|
AmazonPayResponse |
getCheckoutSession(String checkoutSessionId)
The GetCheckoutSession operation is used to get checkout session details that contain
all session associated details.
|
AmazonPayResponse |
getCheckoutSession(String checkoutSessionId,
Map<String,String> header)
The GetCheckoutSession operation is used to get checkout session details that contain
all session associated details.
|
AmazonPayResponse |
getRefund(String refundId)
The getRefund operation is used to get refund details that contain
|
AmazonPayResponse |
getRefund(String refundId,
Map<String,String> header)
The getRefund operation is used to get refund details that contain
|
AmazonPayResponse |
updateChargePermission(String chargePermissionId,
net.sf.json.JSONObject payload)
The UpdateChargePermission operation is used to update the metadata of the ChargePermission.
|
AmazonPayResponse |
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 |
updateCheckoutSession(String checkoutSessionId,
net.sf.json.JSONObject payload)
The UpdateCheckoutSession operation is used to update payment details for a session.
|
AmazonPayResponse |
updateCheckoutSession(String checkoutSessionId,
net.sf.json.JSONObject payload,
Map<String,String> header)
The UpdateCheckoutSession operation is used to update payment details for a session.
|
callAPI, deliveryTracker, deliveryTracker, generateButtonSignature, generateButtonSignature, getAuthorizationTokenpublic WebstoreClient(PayConfiguration payConfiguration) throws AmazonPayClientException
AmazonPayClientExceptionpublic AmazonPayResponse getBuyer(String buyerToken, Map<String,String> header) throws AmazonPayClientException
buyerToken - Buyer Tokenheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getBuyer(String buyerToken) throws AmazonPayClientException
buyerToken - Buyer TokenAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse createCheckoutSession(net.sf.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
payload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse createCheckoutSession(net.sf.json.JSONObject payload) throws AmazonPayClientException
payload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getCheckoutSession(String checkoutSessionId, Map<String,String> header) throws AmazonPayClientException
checkoutSessionId - Checkout Session ID provided by Checkout v2 serviceheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getCheckoutSession(String checkoutSessionId) throws AmazonPayClientException
checkoutSessionId - Checkout Session ID provided by Checkout v2 serviceAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse updateCheckoutSession(String checkoutSessionId, net.sf.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
checkoutSessionId - Checkout Session ID provided by Checkout v2 servicepayload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse updateCheckoutSession(String checkoutSessionId, net.sf.json.JSONObject payload) throws AmazonPayClientException
checkoutSessionId - Checkout Session ID provided by Checkout v2 servicepayload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse completeCheckoutSession(String checkoutSessionId, net.sf.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
checkoutSessionId - Checkout Session ID provided by Checkout v2 servicepayload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse completeCheckoutSession(String checkoutSessionId, net.sf.json.JSONObject payload) throws AmazonPayClientException
checkoutSessionId - Checkout Session ID provided by Checkout v2 servicepayload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getChargePermission(String chargePermissionId, Map<String,String> header) throws AmazonPayClientException
chargePermissionId - Charge Permission ID provided by Checkout v2 serviceheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getChargePermission(String chargePermissionId) throws AmazonPayClientException
chargePermissionId - Charge Permission ID provided by Checkout v2 serviceAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse updateChargePermission(String chargePermissionId, net.sf.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
chargePermissionId - Charge Permission ID provided by Checkout v2 servicepayload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse updateChargePermission(String chargePermissionId, net.sf.json.JSONObject payload) throws AmazonPayClientException
chargePermissionId - Charge Permission ID provided by Checkout v2 servicepayload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse closeChargePermission(String chargePermissionId, net.sf.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
chargePermissionId - Charge Permission ID provided by Checkout v2 servicepayload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse closeChargePermission(String chargePermissionId, net.sf.json.JSONObject payload) throws AmazonPayClientException
chargePermissionId - Charge Permission ID provided by Checkout v2 servicepayload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse createCharge(net.sf.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
payload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse createCharge(net.sf.json.JSONObject payload) throws AmazonPayClientException
payload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getCharge(String chargeId, Map<String,String> header) throws AmazonPayClientException
chargeId - Charge ID provided by Checkout v2 serviceheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getCharge(String chargeId) throws AmazonPayClientException
chargeId - Charge ID provided by Checkout v2 serviceAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse captureCharge(String chargeId, net.sf.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
chargeId - Charge ID provided by Checkout v2 servicepayload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse captureCharge(String chargeId, net.sf.json.JSONObject payload) throws AmazonPayClientException
chargeId - Charge ID provided by Checkout v2 servicepayload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse cancelCharge(String chargeId, net.sf.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
chargeId - Charge ID provided by Checkout v2 servicepayload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse cancelCharge(String chargeId, net.sf.json.JSONObject payload) throws AmazonPayClientException
chargeId - Charge ID provided by Checkout v2 servicepayload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse createRefund(net.sf.json.JSONObject payload, Map<String,String> header) throws AmazonPayClientException
payload - JSONObject request bodyheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse createRefund(net.sf.json.JSONObject payload) throws AmazonPayClientException
payload - JSONObject request bodyAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getRefund(String refundId, Map<String,String> header) throws AmazonPayClientException
refundId - Refund ID provided by Checkout v2 serviceheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issuepublic AmazonPayResponse getRefund(String refundId) throws AmazonPayClientException
refundId - Refund ID provided by Checkout v2 serviceAmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issueCopyright © 2020. All rights reserved.