File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Version 3.6.2 - August 2019
2+ Fix SetBillingAgreementDetails NPE for US and JP regions.
3+
14Version 3.6.1 - August 2019
25Strong Customer Authentication (SCA) implementation bug fix.
36
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments