We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit e1d7fbba authored by Attila Kiss's avatar Attila Kiss Committed by GitHub

[PW-3330] Google pay button is enabled only if the terms and conditions are...

[PW-3330] Google pay button is enabled only if the terms and conditions are enabled [PW-3526] Show message for Google pay (#892)

* Do not disable google pay button when payment form is valid

Do not disable google pay button when terms and conditions is automatic
or when it is disabled

* Show message for google pay when gateway responds with a message
parent bf721ca4
...@@ -148,7 +148,7 @@ define( ...@@ -148,7 +148,7 @@ define(
promise.then(function (success) { promise.then(function (success) {
self.googlePayAllowed(true); self.googlePayAllowed(true);
googlepay.mount(self.googlePayNode); googlepay.mount(self.googlePayNode);
$(self.googlePayNode).find('button').prop('disabled', true); $(self.googlePayNode).find('button').prop('disabled', !self.validate(true));
}, function (error) { }, function (error) {
console.log(error); console.log(error);
self.googlePayAllowed(false); self.googlePayAllowed(false);
......
...@@ -38,6 +38,10 @@ ...@@ -38,6 +38,10 @@
</label> </label>
</div> </div>
<!-- ko foreach: getRegion('messages') -->
<!-- ko template: getTemplate() --><!-- /ko -->
<!--/ko-->
<div class="payment-method-content" data-bind="event: { change: onPaymentMethodContentChange }"> <div class="payment-method-content" data-bind="event: { change: onPaymentMethodContentChange }">
<div class="payment-method-billing-address"> <div class="payment-method-billing-address">
<!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) --> <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->
......
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