Skip to content

Commit

Permalink
Feat/defined payment gateway version (#50)
Browse files Browse the repository at this point in the history
* Add defined constants for XENDIT_PAYMENT_GATEWAY_VERSION

* Hardcode attempt

* Fix version naming
  • Loading branch information
yanoandri authored Feb 12, 2025
1 parent 7bcc2bc commit 26bb712
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gateways/xendit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions modules/gateways/xendit/lib/XenditRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 26bb712

Please sign in to comment.