Skip to content

Commit

Permalink
Merge pull request #5 from vr-dev-team/hotfix/callback-url
Browse files Browse the repository at this point in the history
hotfix: callback url
  • Loading branch information
jetrodn authored May 5, 2021
2 parents 19f1cad + ce6810a commit eda5ea6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/gateways/vrcoinify.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,18 @@ function vrcoinify_link($params)

$api = new CoinifyAPI($params['api'], $params['secret']);

$systemUrl = rtrim($params['systemurl'], '/');

$result = $api->invoiceCreate(
$params['amount'],
$params['currency'],
vrcoinify_plugin_name,
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)) {
Expand Down

0 comments on commit eda5ea6

Please sign in to comment.