From ce6810a3a9dafb2026346a28cbe786856b66a243 Mon Sep 17 00:00:00 2001 From: Vladimir Rodin Date: Wed, 5 May 2021 10:25:54 +0300 Subject: [PATCH] hotfix: callback url --- modules/gateways/vrcoinify.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/gateways/vrcoinify.php b/modules/gateways/vrcoinify.php index bff7671..0bb6bdb 100755 --- a/modules/gateways/vrcoinify.php +++ b/modules/gateways/vrcoinify.php @@ -34,6 +34,8 @@ function vrcoinify_link($params) $api = new CoinifyAPI($params['api'], $params['secret']); + $systemUrl = rtrim($params['systemurl'], '/'); + $result = $api->invoiceCreate( $params['amount'], $params['currency'], @@ -41,9 +43,9 @@ function vrcoinify_link($params) vrcoinify_plugin_version, $params['description'], ['invoiceid' => $params['invoiceid']], - $params['systemurl'] . '/modules/gateways/callback/coinify.php', + $systemUrl . '/modules/gateways/callback/vrcoinify.php', null, - $params['systemurl'] . '/viewinvoice.php?id=' . $params['invoiceid'] + $systemUrl . '/viewinvoice.php?id=' . $params['invoiceid'] ); if (empty($result)) {