Commit 8cfb5272 authored by attilak's avatar attilak

Fix LGTM JS issues

parent 96f82040
......@@ -19,8 +19,6 @@ define(
* Retrieve the list of available payment methods from the server
*/
retrieveAvailablePaymentMethods: function () {
var self = this;
// retrieve payment methods
var serviceUrl,
payload;
......
......@@ -68,14 +68,12 @@ define(
/** Add view logic here if needed */
return Component.extend({
initialize: function () {
var self = this;
this._super();
adyenPaymentService.retrieveAvailablePaymentMethods().done(function (response) {
var responseJson = JSON.parse(response);
var paymentMethodsResponse = responseJson.paymentMethodsResponse;
var paymentMethods = paymentMethodsResponse.paymentMethods;
// TODO check if this is still required or if can be outsourced for the generic component, or checkout can create a ratepay component
/*if (!!window.checkoutConfig.payment.adyenHpp) {
......
......@@ -73,7 +73,6 @@ define(
var recurringDetailReference = ko.observable(null);
var variant = ko.observable(null);
var paymentMethod = ko.observable(null);
var numberOfInstallments = ko.observable(null);
var isValid = ko.observable(false);
return Component.extend({
......@@ -81,7 +80,6 @@ define(
template: 'Adyen_Payment/payment/oneclick-form',
recurringDetailReference: '',
variant: '',
numberOfInstallments: '',
checkoutComponent: {},
storedPayments: []
},
......@@ -90,8 +88,7 @@ define(
.observe([
'recurringDetailReference',
'creditCardType',
'variant',
'numberOfInstallments'
'variant'
]);
return this;
},
......@@ -231,7 +228,7 @@ define(
}
});
var oneClickCard = self.checkoutComponent
self.checkoutComponent
.create(storedPayment.type, configuration)
.mount('#storedPaymentContainer-' + self.value);
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment