From 77dc78744086fcab7f3f0cfc428a35aa7df67e7a Mon Sep 17 00:00:00 2001 From: leon-zhang-awx Date: Fri, 26 Apr 2024 11:44:30 +0800 Subject: [PATCH] Update plugin version number --- Model/Service.php | 2 +- composer.json | 2 +- etc/module.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Model/Service.php b/Model/Service.php index 67bc175..0b0af76 100644 --- a/Model/Service.php +++ b/Model/Service.php @@ -206,7 +206,7 @@ protected function checkIntent($id) $resp = $this->intentGet->setPaymentIntentId($id)->send(); $respArr = json_decode($resp, true); - if (!in_array($respArr['status'], ["SUCCEEDED","REQUIRES_CAPTURE"])) { + if (!in_array($respArr['status'], ["SUCCEEDED","REQUIRES_CAPTURE"], true)) { throw new \Exception("Something went wrong while processing your request. Please try again later."); } } diff --git a/composer.json b/composer.json index a50dad4..d92a13d 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "airwallex/payments-plugin-magento", "type": "magento2-module", "description": "", - "version": "1.4.4", + "version": "1.4.5", "require": { "ext-json": "*", "php": "^7.4|^8.0", diff --git a/etc/module.xml b/etc/module.xml index abaf37a..cd12b4a 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -16,7 +16,7 @@ */ --> - +