From fb2978fba1d3c7f05e8bfb8f55d65ba52bc8a5e8 Mon Sep 17 00:00:00 2001 From: Akash Praveeen Dissanayaka <94224847+GPAPD@users.noreply.github.com> Date: Thu, 24 Oct 2024 02:50:40 +0530 Subject: [PATCH] Update README.md // generate the button signature var signature = client.GenerateButtonSignature(request); this code line is repeated in multiple places. --- README.md | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/README.md b/README.md index cf66604..f1d375b 100644 --- a/README.md +++ b/README.md @@ -176,9 +176,6 @@ public class Sample : PageModel storeId: "amzn1.application-oa2-client.000000000000000000000000000000000" ); - // generate the button signature - var signature = client.GenerateButtonSignature(request); - // generate the signature and payload string that is passed back to the frontend Signature = client.GenerateButtonSignature(request); Payload = request.ToJson(); @@ -216,9 +213,6 @@ public class Sample : PageModel request.RecurringMetadata.Amount.Amount = 12.34m; request.RecurringMetadata.Amount.CurrencyCode = Currency.USD; - // generate the button signature - var signature = client.GenerateButtonSignature(request); - // generate the signature and payload string that is passed back to the frontend Signature = client.GenerateButtonSignature(request); Payload = request.ToJson(); @@ -262,9 +256,6 @@ public class Sample : PageModel }; request.WebCheckoutDetails.CheckoutResultReturnUrl = "https://example.com/return.html" - // generate the button signature - var signature = client.GenerateButtonSignature(request); - // generate the signature and payload string that is passed back to the frontend Signature = client.GenerateButtonSignature(request); Payload = request.ToJson(); @@ -316,9 +307,6 @@ public class Sample : PageModel request.AddressDetails.CountryCode = "US"; request.AddressDetails.PhoneNumber = "212555555"; - // generate the button signature - var signature = client.GenerateButtonSignature(request); - // generate the signature and payload string that is passed back to the frontend Signature = client.GenerateButtonSignature(request); Payload = request.ToJson(); @@ -352,9 +340,6 @@ public class Sample : PageModel signInScopes: scopes ); - // generate the button signature - var signature = client.GenerateButtonSignature(request); - // generate the signature and payload string that is passed back to the frontend Signature = client.GenerateButtonSignature(request); Payload = request.ToJson(); @@ -1445,4 +1430,4 @@ public class Sample } return response; } -} \ No newline at end of file +}