-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/ad 156 #364
Feature/ad 156 #364
Conversation
…eprecated code removed
…eprecated code removed
…eprecated code removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should consider null parameter handling?
public class DefaultSubscriptionAdyenCheckoutApiService extends DefaultAdyenCheckoutApiService { | ||
|
||
protected static final Logger LOG = LogManager.getLogger(DefaultSubscriptionAdyenCheckoutApiService.class); | ||
private CartFacade cartFacade; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove unused fields
final PaymentsRequest paymentsRequest = new PaymentsRequest(); | ||
|
||
final PaymentRequest paymentsRequest = new PaymentRequest(); | ||
//Blik |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary comment?
public RecurringDetailsRequest createListRecurringDetailsRequest(final String merchantAccount, final String customerId) { | ||
return new RecurringDetailsRequest().merchantAccount(merchantAccount).shopperReference(customerId).selectOneClickContract(); | ||
return new RecurringDetailsRequest().merchantAccount(merchantAccount).shopperReference(customerId);//.setRecurring(new Recurring());//.selectOneClickContract(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented out code
@@ -476,7 +392,7 @@ public TerminalAPIRequest createTerminalAPIRequest(final CartData cartData, Cust | |||
saleToAcquirerData.setShopperReference(shopperReference); | |||
saleToAcquirerData.setRecurringContract(recurringContract.getContract().toString()); | |||
} | |||
updateApplicationInfoEcom(saleToAcquirerData.getApplicationInfo()); | |||
//updateApplicationInfoEcom(saleToAcquirerData.getApplicationInfo()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented out code
address.setStreet("NA"); | ||
|
||
// set the actual values if they are available | ||
if (addressData.getTown() != null && !addressData.getTown().isEmpty()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't it be better to use StringUtils.isNotEmpty()
?
@@ -842,21 +691,19 @@ public void setOpenInvoiceData(PaymentsRequest paymentsRequest, CartData cartDat | |||
invoiceLines.add(invoiceLine); | |||
} | |||
|
|||
paymentsRequest.setLineItems(invoiceLines); | |||
// paymentsRequest.setLineItems(invoiceLines); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented out code
…eprecated code removed
Description
Tested scenarios
Fixed issue: