Skip to content

Commit

Permalink
Amazon Pay API SDK (Java) 2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Shangamesh T committed Jan 13, 2022
1 parent d883599 commit 7135fcd
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 42 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#### Version 2.5.1 - January 2022
* Applied patch to address issues occurred in Version 2.5.0.
* **Please dont use Version 2.5.0**

#### Version 2.5.0 - January 2022
* Migrated signature generating algorithm from AMZN-PAY-RSASSA-PSS to AMZN-PAY-RSASSA-PSS-V2 & increased salt length from 20 to 32
* Note : From this SDK version, "algorithm" need to be provided as additional field in "createCheckoutSessionConfig" while rendering Amazon Pay button.
Expand Down
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ To use the SDK in a Maven project, add a <dependency> reference in your pom.xml
<dependency>
<groupId>software.amazon.pay</groupId>
<artifactId>amazon-pay-api-sdk-java</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
</dependency>
</dependencies>
```

To use the SDK in a Gradle project, add the following line to your build.gradle file::

```
implementation 'software.amazon.pay:amazon-pay-api-sdk-java:2.5.0'
implementation 'software.amazon.pay:amazon-pay-api-sdk-java:2.5.1'
```

For legacy projects, you can just grab the binary [jar file](https://github.com/amzn/amazon-pay-api-sdk-java/releases) from the GitHub Releases page.
Expand Down Expand Up @@ -605,17 +605,6 @@ Or, if you want to use a JSONObject:

String signature = client.generateButtonSignature(payload);
```
Note :
As part of signature button integration, "algorithm" need to be provided as additional field in "createCheckoutSessionConfig" while rendering Amazon Pay button.

Example of "createCheckoutSessionConfig" :
``` js
createCheckoutSessionConfig: {
payloadJSON: '{"webCheckoutDetails":{"checkoutReviewReturnUrl":"https://localhost/test/checkoutReview.html"},"storeId": "amzn1.application-oa2-client.xxxxx","scopes": ["name", "email", "phoneNumber", "billingAddress"]}',
signature: 'SIGNATURE', // Signature Obtained by calling "generateButtonSignature(payload)" method
algorithm: 'AMZN-PAY-RSASSA-PSS-V2' // This Parameter is mandatory
}
```

## In-Store API
Please contact your Amazon Pay Account Manager before using the In-Store API calls in a Production environment to obtain a copy of the In-Store Integration Guide.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>software.amazon.pay</groupId>
<artifactId>amazon-pay-api-sdk-java</artifactId>
<packaging>jar</packaging>
<version>2.5.0</version>
<version>2.5.1</version>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.json/json -->
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions src/com/amazon/pay/api/ServiceConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public class ServiceConstants {
public static final Map<Region, String> endpointMappings;
public static final Map<String, Integer> serviceErrors;

public static final String APPLICATION_LIBRARY_VERSION = "2.5.0";
public static final String APPLICATION_LIBRARY_VERSION = "2.5.1";
public static final String GITHUB_SDK_NAME = "amazon-pay-api-sdk-java";
public static final String AMAZON_PAY_API_VERSION = "v2";

public static final String AMAZON_SIGNATURE_ALGORITHM = "AMZN-PAY-RSASSA-PSS-V2";
public static final String AMAZON_SIGNATURE_ALGORITHM = "AMZN-PAY-RSASSA-PSS";
public static final String HASH_ALGORITHM = "SHA-256";
public static final String SIGNATURE_ALGORITHM = "SHA256WithRSA/PSS";
public static final String MASK_GENERATION_FUNCTION = "MGF1";
Expand Down
2 changes: 1 addition & 1 deletion src/com/amazon/pay/api/SignatureHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
public class SignatureHelper {
private final PayConfiguration payConfiguration;
private final String LINE_SEPARATOR = "\n";
public final static int SALT_LENGTH = 32;
public final static int SALT_LENGTH = 20;
public final static int TRAILER_FIELD = 1;

public SignatureHelper(final PayConfiguration payConfiguration) {
Expand Down
2 changes: 1 addition & 1 deletion tst/com/amazon/pay/api/GenerateButtonSignatureTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class GenerateButtonSignatureTest {
private WebstoreClient client;
private Signature signature;

private static final String PLAIN_TEXT = ServiceConstants.AMAZON_SIGNATURE_ALGORITHM + "\n8dec52d799607be40f82d5c8e7ecb6c171e6591c41b1111a576b16076c89381c";
private static final String PLAIN_TEXT = "AMZN-PAY-RSASSA-PSS\n8dec52d799607be40f82d5c8e7ecb6c171e6591c41b1111a576b16076c89381c";

@Before
public void setUp() throws Exception {
Expand Down
4 changes: 2 additions & 2 deletions tst/com/amazon/pay/api/RequestSignerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ private void setUpMockValues() throws Exception {
"accept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\n" +
"81dd99309152d21f2cef921656d3f57830fe9c36fe193af1b62de504e806aceb";

stringToSign = ServiceConstants.AMAZON_SIGNATURE_ALGORITHM + "\n" +
stringToSign = "AMZN-PAY-RSASSA-PSS\n" +
"227f8d4a6974e65a62ebe6648fab8666fe25f10dc2ec41fba9c439e633ba4b94";

signature = "c062NjivoUW+TcHegKebFamCX8Cpmpmy6EiPmKwdpEuZZIpOHJYO";

signedHeaderString = "accept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region";

authorizationHeader = ServiceConstants.AMAZON_SIGNATURE_ALGORITHM + " PublicKeyId=ADGUHQIH9988, SignedHeaders=accept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region, Signature=c062NjivoUW+TcHegKebFamCX8Cpmpmy6EiPmKwdpEuZZIpOHJYO";
authorizationHeader = "AMZN-PAY-RSASSA-PSS PublicKeyId=ADGUHQIH9988, SignedHeaders=accept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region, Signature=c062NjivoUW+TcHegKebFamCX8Cpmpmy6EiPmKwdpEuZZIpOHJYO";

headers = new HashMap<>();
List<String> acceptHeaderValue = new ArrayList<>();
Expand Down
4 changes: 2 additions & 2 deletions tst/com/amazon/pay/api/RequestSignerWithHeaderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ private void setUpMockValues() throws Exception {
"accept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-idempotency-key;x-amz-pay-region\n" +
"81dd99309152d21f2cef921656d3f57830fe9c36fe193af1b62de504e806aceb";

stringToSign = ServiceConstants.AMAZON_SIGNATURE_ALGORITHM + "\n" +
stringToSign = "AMZN-PAY-RSASSA-PSS\n" +
"15322736b7e5a9056411168d070b1f3dcc289c46890692c06f07c62d3ef0721d";

signature = "BsnrBn7R4QvpWqPzElKnxK8KLm7BzglICqRsWDcj7okwVpHrpZnoOm4D3v2+naryg2vIzP2iIWvscNm3MbX7vR3nClgcB+vVUQZLEu9yg0IJA4QCiybh9etgLHSRv2jwR9ByFe9U5FMdhr7omDG3Q1lAjvvxiPHt9UtL3h1LJ7rirOuQUWp/zL5QDWsIvTty3zEKksdRJuPeCGwijwo0LPuIf2plZGv9TJ5CJBxssw3+phj5Nvo9HWuzFRkJsC1jgknO0+eSTSn5RM6R2Px0mkz3qbd5ZpSX3tIoK937vkmNZALNm/euqYnIKjviGVuSEDo1ite84foCvSqpTmiVrg==";

signedHeaderString = "accept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-idempotency-key;x-amz-pay-region";

authorizationHeader = ServiceConstants.AMAZON_SIGNATURE_ALGORITHM + " PublicKeyId=ADGUHQIH9988, SignedHeaders=accept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-idempotency-key;x-amz-pay-region, Signature=BsnrBn7R4QvpWqPzElKnxK8KLm7BzglICqRsWDcj7okwVpHrpZnoOm4D3v2+naryg2vIzP2iIWvscNm3MbX7vR3nClgcB+vVUQZLEu9yg0IJA4QCiybh9etgLHSRv2jwR9ByFe9U5FMdhr7omDG3Q1lAjvvxiPHt9UtL3h1LJ7rirOuQUWp/zL5QDWsIvTty3zEKksdRJuPeCGwijwo0LPuIf2plZGv9TJ5CJBxssw3+phj5Nvo9HWuzFRkJsC1jgknO0+eSTSn5RM6R2Px0mkz3qbd5ZpSX3tIoK937vkmNZALNm/euqYnIKjviGVuSEDo1ite84foCvSqpTmiVrg==";
authorizationHeader = "AMZN-PAY-RSASSA-PSS PublicKeyId=ADGUHQIH9988, SignedHeaders=accept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-idempotency-key;x-amz-pay-region, Signature=BsnrBn7R4QvpWqPzElKnxK8KLm7BzglICqRsWDcj7okwVpHrpZnoOm4D3v2+naryg2vIzP2iIWvscNm3MbX7vR3nClgcB+vVUQZLEu9yg0IJA4QCiybh9etgLHSRv2jwR9ByFe9U5FMdhr7omDG3Q1lAjvvxiPHt9UtL3h1LJ7rirOuQUWp/zL5QDWsIvTty3zEKksdRJuPeCGwijwo0LPuIf2plZGv9TJ5CJBxssw3+phj5Nvo9HWuzFRkJsC1jgknO0+eSTSn5RM6R2Px0mkz3qbd5ZpSX3tIoK937vkmNZALNm/euqYnIKjviGVuSEDo1ite84foCvSqpTmiVrg==";

headers = new HashMap<>();
List<String> acceptHeaderValue = new ArrayList<>();
Expand Down
2 changes: 1 addition & 1 deletion tst/com/amazon/pay/api/SignatureHelperTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void createStringToSign() throws Exception {
PowerMockito.when(spy, method(SignatureHelper.class, "hashThenHexEncode")).withArguments(canonicalRequest).thenReturn("95b0d65e9efb9f0b9e8c2f3b77");

String stringToSign = spy.createStringToSign(canonicalRequest);
String expectedString = ServiceConstants.AMAZON_SIGNATURE_ALGORITHM + "\n" + "95b0d65e9efb9f0b9e8c2f3b77";
String expectedString = "AMZN-PAY-RSASSA-PSS" + "\n" + "95b0d65e9efb9f0b9e8c2f3b77";

Assert.assertEquals(stringToSign, expectedString);
}
Expand Down
38 changes: 19 additions & 19 deletions tst/com/amazon/pay/api/testdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"parameters" : {},
"payload" : "",
"canonicalRequest" : "GET\n/\n\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\nbb49552975c396f1e49d5510e1555b8b0627dc491bc61aaefdb561f202ad8020"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\nbb49552975c396f1e49d5510e1555b8b0627dc491bc61aaefdb561f202ad8020"
},

{
Expand All @@ -16,7 +16,7 @@
"parameters" : {},
"payload" : "",
"canonicalRequest" : "GET\n/\n\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\nbb49552975c396f1e49d5510e1555b8b0627dc491bc61aaefdb561f202ad8020"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\nbb49552975c396f1e49d5510e1555b8b0627dc491bc61aaefdb561f202ad8020"
},

{
Expand All @@ -26,7 +26,7 @@
"parameters" : {},
"payload" : "",
"canonicalRequest" : "GET\n/\n\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\nbb49552975c396f1e49d5510e1555b8b0627dc491bc61aaefdb561f202ad8020"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\nbb49552975c396f1e49d5510e1555b8b0627dc491bc61aaefdb561f202ad8020"
},

{
Expand All @@ -36,18 +36,18 @@
"parameters" : {},
"payload" : "",
"canonicalRequest" : "GET\n/-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\n\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\na0e5dd63e175587f29d51c6b08be5c746a568209ac66ab1f967e0ba515aa80bc"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\na0e5dd63e175587f29d51c6b08be5c746a568209ac66ab1f967e0ba515aa80bc"
},

{
"name" : "get-vanilla-query",
"uri" : "/",
"method" : "GET",
"parameters" : {},
"algorithm" : "AMZN-PAY-RSASSA-PSS-V2",
"algorithm" : "AMZN-PAY-RSASSA-PSS",
"payload" : "",
"canonicalRequest" : "GET\n/\n\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\nbb49552975c396f1e49d5510e1555b8b0627dc491bc61aaefdb561f202ad8020"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\nbb49552975c396f1e49d5510e1555b8b0627dc491bc61aaefdb561f202ad8020"
},

{
Expand All @@ -57,7 +57,7 @@
"parameters" : {},
"payload" : "",
"canonicalRequest" : "GET\n/%E1%88%B4\n\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\n77f6544c8fb336d430895659da1e30415a1558b4b013f4d7926bb3a6275f701d"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\n77f6544c8fb336d430895659da1e30415a1558b4b013f4d7926bb3a6275f701d"

},

Expand All @@ -70,7 +70,7 @@
},
"payload" : "",
"canonicalRequest" : "GET\n/\n%E1%88%B4=bar\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\nef1007307504f2ca9f0b6310b04056f5d3d6d18e7bf3d90663133f19ec132ecc"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\nef1007307504f2ca9f0b6310b04056f5d3d6d18e7bf3d90663133f19ec132ecc"
},

{
Expand All @@ -80,7 +80,7 @@
"parameters" : {},
"payload" : "",
"canonicalRequest" : "POST\n/\n\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\n54156f5badd6da7fa630b2c334c808ad376530001d334ae9960457215aa626d3"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\n54156f5badd6da7fa630b2c334c808ad376530001d334ae9960457215aa626d3"
},

{
Expand All @@ -92,7 +92,7 @@
},
"payload" : "",
"canonicalRequest" : "POST\n/\nfoo=bar\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\ncc82525870b2d03666c287fd8b2c0d2fc6fa1693d9f357d27f7cac8cbcc12832"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\ncc82525870b2d03666c287fd8b2c0d2fc6fa1693d9f357d27f7cac8cbcc12832"
},

{
Expand All @@ -104,7 +104,7 @@
},
"payload" : "",
"canonicalRequest" : "GET\n/\nfoo=bar\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\n6837f80baf1801c75db8119cffbadc26a89d20adb9cf3f3de4ce0fac31b4ae52"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\n6837f80baf1801c75db8119cffbadc26a89d20adb9cf3f3de4ce0fac31b4ae52"
},

{
Expand All @@ -116,7 +116,7 @@
},
"payload" : "",
"canonicalRequest" : "GET\n/\nfoo=a&foo=b\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\na33266ec31c7f0ca8a0738eb49fb8c81319f14374a0b86d52e6911a9748a6d42"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\na33266ec31c7f0ca8a0738eb49fb8c81319f14374a0b86d52e6911a9748a6d42"
},

{
Expand All @@ -129,7 +129,7 @@
},
"payload" : "",
"canonicalRequest" : "GET\n/\na=foo&b=foo\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\n6615ba7ca3734e97b35013f77c74d111ce2fa63ab52be161ad41bcd4b010120f"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\n6615ba7ca3734e97b35013f77c74d111ce2fa63ab52be161ad41bcd4b010120f"
},

{
Expand All @@ -143,7 +143,7 @@
},
"payload" : "",
"canonicalRequest" : "GET\n/\nA.1=foo&A.10=foo&A.2=foo\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\n29d908d70c4bb50d62272976787245b52ed52e569fdae56ef3aa6d8979978ee7"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\n29d908d70c4bb50d62272976787245b52ed52e569fdae56ef3aa6d8979978ee7"
},

{
Expand All @@ -155,7 +155,7 @@
},
"payload" : "",
"canonicalRequest" : "GET\n/\nfoo=Zoo&foo=aha\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\nf379cbd2e2fc9d5d50667a07ec22996335f731b474bb8bd366647d05d958c9d5"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\nf379cbd2e2fc9d5d50667a07ec22996335f731b474bb8bd366647d05d958c9d5"
},

{
Expand All @@ -167,7 +167,7 @@
},
"payload" : "",
"canonicalRequest" : "GET\n/\n-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\n892abddd6e79db3feb5695b318af639c3e863494f6b4df32ec24fff4c1562a73"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\n892abddd6e79db3feb5695b318af639c3e863494f6b4df32ec24fff4c1562a73"
},

{
Expand All @@ -177,10 +177,10 @@
"parameters" : {
"@#$%^&+=/,?><`\";:\\|][{} " : [ "@#$%^&+=/,?><`\";:\\|][{} " ]
},
"algorithm" : "AMZN-PAY-RSASSA-PSS-V2",
"algorithm" : "AMZN-PAY-RSASSA-PSS",
"payload" : "",
"canonicalRequest" : "POST\n/\n%40%23%24%25%5E%26%2B%3D%2F%2C%3F%3E%3C%60%22%3B%3A%5C%7C%5D%5B%7B%7D%20=%40%23%24%25%5E%26%2B%3D%2F%2C%3F%3E%3C%60%22%3B%3A%5C%7C%5D%5B%7B%7D%20\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\n66bbbf2b5d6d297a9393abbc0b4f9d62e30666bb0ec0dea8f1d4e45551440e4c"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\n66bbbf2b5d6d297a9393abbc0b4f9d62e30666bb0ec0dea8f1d4e45551440e4c"
},

{
Expand All @@ -192,6 +192,6 @@
},
"payload" : "",
"canonicalRequest" : "POST\n/\nf%20oo=b%20ar\naccept:application/json\ncontent-type:application/json\nx-amz-pay-date:20180524T223710Z\nx-amz-pay-host:pay-api.amazon.eu\nx-amz-pay-region:EU\n\naccept;content-type;x-amz-pay-date;x-amz-pay-host;x-amz-pay-region\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"stringToSign" : "AMZN-PAY-RSASSA-PSS-V2\n99be3aeb19b5a1aebafc807d59f3740d3e604ae31cf928592fa70739ea64bb32"
"stringToSign" : "AMZN-PAY-RSASSA-PSS\n99be3aeb19b5a1aebafc807d59f3740d3e604ae31cf928592fa70739ea64bb32"
},
]

0 comments on commit 7135fcd

Please sign in to comment.