Skip to content

Commit

Permalink
Fixed empty redirectURL
Browse files Browse the repository at this point in the history
  • Loading branch information
Pieter Poorthuis committed Apr 19, 2018
1 parent a832763 commit 0c30730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gateways/bit-pay/createinvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@


$options['notificationURL'] = $_POST['systemURL'].'/modules/gateways/callback/bitpay.php';
$options['redirectURL'] = isset($GATEWAY['redirectURL']) ? $GATEWAY['redirectURL'] : $_POST['systemURL'];
$options['redirectURL'] = !empty($GATEWAY['redirectURL']) ? $GATEWAY['redirectURL'] : $_POST['systemURL'];
$options['apiKey'] = $GATEWAY['apiKey'];
$options['transactionSpeed'] = $GATEWAY['transactionSpeed'];
$options['currency'] = $currency;
Expand Down

0 comments on commit 0c30730

Please sign in to comment.