From 6a09c2b446064564c0d72413440d5c0559e2494a Mon Sep 17 00:00:00 2001 From: Dmitry Fedyuk Date: Wed, 20 Sep 2017 12:45:29 +0300 Subject: [PATCH] 1.2.7 --- composer.json | 4 ++-- view/frontend/web/main.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index b8270f8..1f42e0f 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/square" - ,"version": "1.2.6" + ,"version": "1.2.7" ,"description": "The «Square» payment extension for Magento 2." ,"type": "magento2-module" ,"homepage": "https://mage2.pro/c/extensions/square" @@ -11,7 +11,7 @@ "homepage": "https://mage2.pro/users/dmitry_fedyuk", "role": "Developer" }] - ,"require": {"mage2pro/core": ">=2.12.0", "mage2pro/square-php-sdk": "^2.0.2"} + ,"require": {"mage2pro/core": ">=2.12.10", "mage2pro/square-php-sdk": "^2.0.2"} ,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Square\\": ""}} ,"keywords": [ "API" diff --git a/view/frontend/web/main.js b/view/frontend/web/main.js index b743fb7..eba28bb 100644 --- a/view/frontend/web/main.js +++ b/view/frontend/web/main.js @@ -91,7 +91,7 @@ return parent.extend({ errorsA.push(error.message); }); _this.showErrorMessage(errorsA.join("\n")); - this.isPlaceOrderActionAllowed(true); + this.state_waitingForServerResponse(false); } }, paymentFormLoaded: function() { @@ -191,7 +191,7 @@ return parent.extend({ event.preventDefault(); } // 2017-07-26 «Sometimes getting duplicate orders in checkout»: https://mage2.pro/t/4217 - this.isPlaceOrderActionAllowed(false); + this.state_waitingForServerResponse(true); this.square.requestCardNonce(); } });});