Commit c10d12f2 authored by attilak's avatar attilak

Fix google pay

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