Commit c10d12f2 authored by attilak's avatar attilak

Fix google pay

parent 3e936c98
...@@ -150,13 +150,7 @@ define( ...@@ -150,13 +150,7 @@ define(
googlepay.isAvailable().then(function() { googlepay.isAvailable().then(function() {
self.googlePayAllowed(true); self.googlePayAllowed(true);
googlepay.mount(self.googlePayNode); googlepay.mount(self.googlePayNode);
$(self.googlePayNode).find('button').prop('disabled', !self.validate(true)); $(self.googlePayNode).toggleClass('disabled', !self.validate(true));
// TODO check if it's better
/*
self.googlePayNode.addEventListener('click', function () {
self.validate();
});
*/
}, function(error) { }, function(error) {
console.log(error); console.log(error);
self.googlePayAllowed(false); self.googlePayAllowed(false);
......
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