From 7bcc2bc93685c5f4e4288bbcd1a0fef120287a87 Mon Sep 17 00:00:00 2001 From: yanoandri Date: Tue, 21 Jan 2025 11:30:14 +0700 Subject: [PATCH] Add defined constants for XENDIT_PAYMENT_GATEWAY_VERSION (#48) --- modules/gateways/xendit.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gateways/xendit.php b/modules/gateways/xendit.php index 40d035f..338d19c 100644 --- a/modules/gateways/xendit.php +++ b/modules/gateways/xendit.php @@ -10,7 +10,9 @@ require __DIR__ . '/xendit/autoload.php'; // Module version -const XENDIT_PAYMENT_GATEWAY_VERSION = '2.1.1'; +if (!defined('XENDIT_PAYMENT_GATEWAY_VERSION')) { + define('XENDIT_PAYMENT_GATEWAY_VERSION', '2.1.2'); // or any default value +} use WHMCS\Billing\Invoice; use Xendit\Lib\ActionBase;