diff --git a/modules/gateways/bit-pay/createinvoice.php b/modules/gateways/bit-pay/createinvoice.php index fe84fe1..c5df95c 100755 --- a/modules/gateways/bit-pay/createinvoice.php +++ b/modules/gateways/bit-pay/createinvoice.php @@ -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;