Skip to content

Commit

Permalink
Amazon Pay Java SDK 3.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshika Agarwal committed Oct 16, 2019
1 parent a68fafc commit 9b0bf0f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version 3.6.2 - August 2019
Fix SetBillingAgreementDetails NPE for US and JP regions.

Version 3.6.1 - August 2019
Strong Customer Authentication (SCA) implementation bug fix.

Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.amazon.pay</groupId>
<artifactId>amazon-pay-java-sdk</artifactId>
<packaging>jar</packaging>
<version>3.6.1</version>
<version>3.6.2</version>
<dependencies>
<dependency>
<groupId>commons-codec</groupId>
Expand Down
10 changes: 6 additions & 4 deletions src/com/amazon/pay/request/RequestHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,12 @@ public String getPostURL(SetBillingAgreementDetailsRequest request) {
parameters.put(ServiceConstants.BILLING_AGREEMENT_SELLER_CUSTOM_INFORMATION, request.getCustomInformation());
if (request.getBillingAgreementType() != null)
parameters.put(ServiceConstants.BILLING_AGREEMENT_TYPE, request.getBillingAgreementType().toString());
if (request.getSubscriptionAmount().getCurrencyCode() != null)
parameters.put(ServiceConstants.BILLING_AGREEMENT_SUBSCRIPTION_AMOUNT_CURRENCY_CODE, request.getSubscriptionAmount().getCurrencyCode());
if (request.getSubscriptionAmount().getAmount() != null)
parameters.put(ServiceConstants.BILLING_AGREEMENT_SUBSCRIPTION_AMOUNT_AMOUNT, request.getSubscriptionAmount().getAmount());
if (request.getSubscriptionAmount() != null) {
if (request.getSubscriptionAmount().getCurrencyCode() != null)
parameters.put(ServiceConstants.BILLING_AGREEMENT_SUBSCRIPTION_AMOUNT_CURRENCY_CODE, request.getSubscriptionAmount().getCurrencyCode());
if (request.getSubscriptionAmount().getAmount() != null)
parameters.put(ServiceConstants.BILLING_AGREEMENT_SUBSCRIPTION_AMOUNT_AMOUNT, request.getSubscriptionAmount().getAmount());
}
addClientParameters(parameters, request);

return Util.convertParameterMapToString(parameters);
Expand Down
2 changes: 1 addition & 1 deletion src/com/amazon/pay/types/ServiceConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public class ServiceConstants {
public static final String GET_MERCHANT_ACCOUNT_STATUS = "GetMerchantAccountStatus";

// SDK version
public static final String APPLICATION_LIBRARY_VERSION = "3.6.1";
public static final String APPLICATION_LIBRARY_VERSION = "3.6.2";
public static final String GITHUB_SDK_NAME = "amazon-pay-sdk-java";

// Exponential backoff wait times (milliseconds) for retry operations
Expand Down

0 comments on commit 9b0bf0f

Please sign in to comment.