Skip to content

Commit b49ee6e

Browse files
authored
Merge pull request #66 from ahoshaiyan/fix-front-end-validation
Fix front end validation
2 parents b376dc0 + 513cd16 commit b49ee6e

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

Moyasar/Mysr/Helper/MoyasarHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class MoyasarHelper extends AbstractHelper
2020
{
21-
const VERSION = '3.0.0';
21+
const VERSION = '3.1.0';
2222

2323
protected $orderManagement;
2424
protected $_objectManager;

Moyasar/Mysr/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "moyasar/module-mysr",
33
"description": "Magento 2 payment module that integrate with https:\\moyasar.com Gateway",
44
"type": "magento2-module",
5-
"version": "2.5.6",
5+
"version": "3.2.0",
66
"authors": [
77
{
88
"email": "[email protected]",

Moyasar/Mysr/view/frontend/web/js/view/payment/method-renderer/moyasar_payments.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,8 @@ define(
154154
self.updateOrderPayment(payment)
155155
.done(function (data, status, xhr) {
156156
self.isPlaceOrderActionAllowed(true);
157-
158-
if (payment.status === 'initiated') {
159-
fullScreenLoader.stopLoader();
160-
$('#checkout').trigger('processStop');
161-
} else {
162-
self.cancelOrder(extractApiErrors(xhr.responseJSON));
163-
}
164-
157+
fullScreenLoader.stopLoader();
158+
$('#checkout').trigger('processStop');
165159
resolve();
166160
})
167161
.fail(function (xhr) {

0 commit comments

Comments
 (0)