You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,6 @@
1
+
#### Version 2.1.4 - May 2021
2
+
* Enabled support for environment specific keys (i.e Public key & Private key). The changes are fully backwards-compatible, where merchants can also use non environment specific keys
3
+
1
4
#### Version 2.1.3 - April 2021
2
5
* Removed deprecated library 'request' which is used to make HTTP/HTTPS calls
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,17 @@ To associate the key with your account, follow the instructions here to
55
55
};
56
56
```
57
57
58
+
If you have created environment specific keys (i.e Public Key Starts with LIVE or SANDBOX) in Seller Central, then use those PublicKeyId & PrivateKey. In this case, there is no need to pass the Sandbox parameter to the ApiConfiguration.
59
+
60
+
```js
61
+
constfs=require('fs');
62
+
constconfig= {
63
+
'publicKeyId':'PUBLIC_KEY_ID', // LIVE-XXXXX or SANDBOX-XXXXX
64
+
'privateKey':fs.readFileSync('tst/private.pem'), // Path to RSA Private Key (or a string representation)
65
+
'region':'us', // Must be one of: 'us', 'eu', 'jp'
66
+
};
67
+
```
68
+
58
69
# Versioning
59
70
The pay-api.amazon.com|eu|jp endpoint uses versioning to allow future updates. The major version of this SDK will stay aligned with the API version of the endpoint.
0 commit comments