Skip to content

Commit

Permalink
hotfix: callback url
Browse files Browse the repository at this point in the history
  • Loading branch information
jetrodn committed May 5, 2021
1 parent 11fa2b0 commit ce6810a
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 ce6810a

Please sign in to comment.