Skip to content

Commit

Permalink
Merge branch 'master' into release1121
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Goltsov committed Dec 15, 2021
2 parents 2b24247 + ead3e4b commit 31b884e
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions view/frontend/web/js/view/payment/method-renderer/tns-hpf.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ define(
onActiveChange: 'active'
},
creditCardExpYear: '',
creditCardExpMonth: '',
creditCardExpMonth: ''
},
placeOrderHandler: null,
validateHandler: null,
Expand Down Expand Up @@ -88,7 +88,7 @@ define(
'creditCardExpYear',
'creditCardExpMonth',
'buttonTitle',
'showCcForm',
'showCcForm'
]);

this.buttonTitle(this.buttonTitleDisabled);
Expand All @@ -114,44 +114,44 @@ define(
this.placeOrderHandler = handler;
},

getCvvImageHtml: function() {
getCvvImageHtml: function () {
return '<img src="' + this.getCvvImageUrl()
+ '" alt="' + $t('Card Verification Number Visual Reference')
+ '" title="' + $t('Card Verification Number Visual Reference')
+ '" />';
},

getCcMonthsValues: function() {
return _.map(this.getCcMonths(), function(value, key) {
getCcMonthsValues: function () {
return _.map(this.getCcMonths(), function (value, key) {
return {
'value': key,
'month': value
}
});
},

getCcYearsValues: function() {
return _.map(this.getCcYears(), function(value, key) {
getCcYearsValues: function () {
return _.map(this.getCcYears(), function (value, key) {
return {
'value': key,
'year': value
}
});
},

getCcMonths: function() {
getCcMonths: function () {
return window.checkoutConfig.payment.ccform.months[this.getCode()];
},

getCcYears: function() {
getCcYears: function () {
return window.checkoutConfig.payment.ccform.years[this.getCode()];
},

getCvvImageUrl: function() {
getCvvImageUrl: function () {
return window.checkoutConfig.payment.ccform.cvvImageUrl[this.getCode()];
},

hasVerification: function() {
hasVerification: function () {
return window.checkoutConfig.payment.ccform.hasVerification[this.getCode()];
},

Expand Down Expand Up @@ -206,7 +206,7 @@ define(
}, this.getId());
},

paymentAdapterLoadFailed: function() {
paymentAdapterLoadFailed: function () {
this.messageContainer.addErrorMessage({
message: $t('It is impossible to continue with this Payment Method. Please try again later.')
});
Expand Down Expand Up @@ -245,7 +245,7 @@ define(
if (this.is3DsEnabled() || this.is3Ds2Enabled()) {
action = setPaymentInformationAction(this.messageContainer, this.getData());

$.when(action).done($.proxy(function() {
$.when(action).done($.proxy(function () {
this.delegate(this.is3Ds2Enabled() ? 'threeDSecureV2Start' : 'threeDSecureOpen', this);
}, this)).fail(
$.proxy(this.threeDSecureCheckFailed, this)
Expand Down Expand Up @@ -309,8 +309,8 @@ define(
this._super();

layout(this.createChildrenComponents([
{ name: 'threedsecure', component: 'threedsecure' },
{ name: 'threedsecureV2', component: 'threedsecure-v2' }
{name: 'threedsecure', component: 'threedsecure'},
{name: 'threedsecureV2', component: 'threedsecure-v2'}
]));

return this;
Expand Down

0 comments on commit 31b884e

Please sign in to comment.