From 26bb7123aa37410e1db11a774e13a71d63dbd79c Mon Sep 17 00:00:00 2001 From: yanoandri Date: Wed, 12 Feb 2025 09:50:02 +0700 Subject: [PATCH] Feat/defined payment gateway version (#50) * Add defined constants for XENDIT_PAYMENT_GATEWAY_VERSION * Hardcode attempt * Fix version naming --- modules/gateways/xendit.php | 2 +- modules/gateways/xendit/lib/XenditRequest.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/gateways/xendit.php b/modules/gateways/xendit.php index 338d19c..bcc23be 100644 --- a/modules/gateways/xendit.php +++ b/modules/gateways/xendit.php @@ -11,7 +11,7 @@ // Module version if (!defined('XENDIT_PAYMENT_GATEWAY_VERSION')) { - define('XENDIT_PAYMENT_GATEWAY_VERSION', '2.1.2'); // or any default value + define('XENDIT_PAYMENT_GATEWAY_VERSION', '1.3.2'); // or any default value } use WHMCS\Billing\Invoice; diff --git a/modules/gateways/xendit/lib/XenditRequest.php b/modules/gateways/xendit/lib/XenditRequest.php index 7574fcc..e2a4bea 100644 --- a/modules/gateways/xendit/lib/XenditRequest.php +++ b/modules/gateways/xendit/lib/XenditRequest.php @@ -2,6 +2,10 @@ namespace Xendit\Lib; +if (!defined('XENDIT_PAYMENT_GATEWAY_VERSION')) { + define('XENDIT_PAYMENT_GATEWAY_VERSION', '1.3.2'); // or any default value +} + class XenditRequest { protected $tpi_server_domain = "https://tpi-gateway.xendit.co";