Skip to content

Commit 9b0bf0f

Browse files
author
Harshika Agarwal
committed
Amazon Pay Java SDK 3.6.2
1 parent a68fafc commit 9b0bf0f

5 files changed

Lines changed: 11 additions & 6 deletions

File tree

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Version 3.6.2 - August 2019
2+
Fix SetBillingAgreementDetails NPE for US and JP regions.
3+
14
Version 3.6.1 - August 2019
25
Strong Customer Authentication (SCA) implementation bug fix.
36

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.amazon.pay</groupId>
55
<artifactId>amazon-pay-java-sdk</artifactId>
66
<packaging>jar</packaging>
7-
<version>3.6.1</version>
7+
<version>3.6.2</version>
88
<dependencies>
99
<dependency>
1010
<groupId>commons-codec</groupId>

src/com/amazon/pay/request/RequestHelper.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,10 +419,12 @@ public String getPostURL(SetBillingAgreementDetailsRequest request) {
419419
parameters.put(ServiceConstants.BILLING_AGREEMENT_SELLER_CUSTOM_INFORMATION, request.getCustomInformation());
420420
if (request.getBillingAgreementType() != null)
421421
parameters.put(ServiceConstants.BILLING_AGREEMENT_TYPE, request.getBillingAgreementType().toString());
422-
if (request.getSubscriptionAmount().getCurrencyCode() != null)
423-
parameters.put(ServiceConstants.BILLING_AGREEMENT_SUBSCRIPTION_AMOUNT_CURRENCY_CODE, request.getSubscriptionAmount().getCurrencyCode());
424-
if (request.getSubscriptionAmount().getAmount() != null)
425-
parameters.put(ServiceConstants.BILLING_AGREEMENT_SUBSCRIPTION_AMOUNT_AMOUNT, request.getSubscriptionAmount().getAmount());
422+
if (request.getSubscriptionAmount() != null) {
423+
if (request.getSubscriptionAmount().getCurrencyCode() != null)
424+
parameters.put(ServiceConstants.BILLING_AGREEMENT_SUBSCRIPTION_AMOUNT_CURRENCY_CODE, request.getSubscriptionAmount().getCurrencyCode());
425+
if (request.getSubscriptionAmount().getAmount() != null)
426+
parameters.put(ServiceConstants.BILLING_AGREEMENT_SUBSCRIPTION_AMOUNT_AMOUNT, request.getSubscriptionAmount().getAmount());
427+
}
426428
addClientParameters(parameters, request);
427429

428430
return Util.convertParameterMapToString(parameters);

src/com/amazon/pay/types/ServiceConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public class ServiceConstants {
152152
public static final String GET_MERCHANT_ACCOUNT_STATUS = "GetMerchantAccountStatus";
153153

154154
// SDK version
155-
public static final String APPLICATION_LIBRARY_VERSION = "3.6.1";
155+
public static final String APPLICATION_LIBRARY_VERSION = "3.6.2";
156156
public static final String GITHUB_SDK_NAME = "amazon-pay-sdk-java";
157157

158158
// Exponential backoff wait times (milliseconds) for retry operations

0 commit comments

Comments
 (0)