Skip to content

Commit

Permalink
Updating Readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
Shangamesh T committed May 18, 2022
1 parent 7135fcd commit ba42d88
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,14 +355,14 @@ JSONObject updateWebCheckoutDetails = new JSONObject();
updateWebCheckoutDetails.put("checkoutResultReturnUrl", "https://localhost/store/checkout_return");
payload.put("webCheckoutDetails", updateWebCheckoutDetails);

JSONObject paymentDetail = new JSONObject();
paymentDetail.put("paymentIntent" , "Authorize");
paymentDetail.put("canHandlePendingAuthorization", false);
JSONObject paymentDetails = new JSONObject();
paymentDetails.put("paymentIntent" , "Authorize");
paymentDetails.put("canHandlePendingAuthorization", false);
JSONObject chargeAmount = new JSONObject();
chargeAmount.put("amount", "12.34");
chargeAmount.put("currencyCode", "USD");
paymentDetail.put("chargeAmount", chargeAmount);
payload.put("paymentDetail", paymentDetail);
paymentDetails.put("chargeAmount", chargeAmount);
payload.put("paymentDetails", paymentDetails);

JSONObject merchantMetadata = new JSONObject();
merchantMetadata.put("merchantReferenceId", "2019-0001");
Expand All @@ -386,12 +386,12 @@ try {
AmazonPayResponse response = null;
JSONObject payload = new JSONObject();

JSONObject paymentDetail = new JSONObject();
JSONObject paymentDetails = new JSONObject();
JSONObject chargeAmount = new JSONObject();
chargeAmount.put("amount", "12.34");
chargeAmount.put("currencyCode", "USD");
paymentDetail.put("chargeAmount", chargeAmount);
payload.put("paymentDetail", paymentDetail);
paymentDetails.put("chargeAmount", chargeAmount);
payload.put("paymentDetails", paymentDetails);

try {
response = webstoreClient.completeCheckoutSession(checkoutSessionId, payload);
Expand Down

0 comments on commit ba42d88

Please sign in to comment.