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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
### Version 2.4.8 - 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
+
* Added "EstimateOrderTotal" to PaymentDetails
4
+
1
5
### Version 2.4.7 - May 2021
2
6
* Added "recurringMetadata" to UpdateChargePermissionRequest for ChargePermission API
3
7
* Added "HasPrimeMembershipType" to BuyerResponse for Buyer API
Copy file name to clipboardExpand all lines: README.md
+29-4Lines changed: 29 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,11 @@ This SDK is compatible with .NET Standard 2.0 (including .NET Core 2.0), as well
26
26
27
27
## SDK Installation
28
28
29
-
This SDK can be downloaded from NuGet [here](https://www.nuget.org/packages/Amazon.Pay.API.SDK) or GitHub [here](https://github.com/amzn/amazon-pay-api-sdk-dotnet/releases/download/2.4.7/Amazon.Pay.API.SDK.2.4.7.nupkg).
29
+
This SDK can be downloaded from NuGet [here](https://www.nuget.org/packages/Amazon.Pay.API.SDK) or GitHub [here](https://github.com/amzn/amazon-pay-api-sdk-dotnet/releases/download/2.4.8/Amazon.Pay.API.SDK.2.4.8.nupkg).
30
30
31
31
NuGet install from Package Manager:
32
32
```
33
-
Install-Package Amazon.Pay.API.SDK -Version 2.4.7
33
+
Install-Package Amazon.Pay.API.SDK -Version 2.4.8
34
34
```
35
35
36
36
NuGet install from .NET CLI:
@@ -42,12 +42,12 @@ Alternatively, to manually install after a GitHub download, use one of the follo
If you have created envrionment 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 Environment parameter to the ApiConfiguration.
125
+
```csharp
126
+
usingAmazon.Pay.API.Types;
127
+
usingAmazon.Pay.API.WebStore;
128
+
129
+
publicclassSample
130
+
{
131
+
publicWebStoreClientInitiateClient()
132
+
{
133
+
// set up config
134
+
varpayConfiguration=newApiConfiguration
135
+
(
136
+
region:Region.Europe,
137
+
publicKeyId:"MY_PUBLIC_KEY_ID", // LIVE-XXXXX or SANDBOX-XXXXX
138
+
privateKey:"PATH_OR_CONTENT_OF_MY_PRIVATE_KEY"
139
+
);
140
+
141
+
// init API client
142
+
varclient=newWebStoreClient(payConfiguration);
143
+
144
+
returnclient;
145
+
}
146
+
}
147
+
```
123
148
### Generate Button Signature
124
149
125
150
The signatures generated by the `GenerateButtonSignature` helper method are only valid for the Checkout v2 front-end buttons. Unlike API signing, no timestamps are involved, so the result of this function can be considered a static signature that can safely be placed in your website JS source files and used repeatedly (as long as your payload does not change).
0 commit comments