Skip to content

Commit c2f5202

Browse files
committed
Use scriptname and not Request URI
1 parent c1eff39 commit c2f5202

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/gateways/callback/paystack.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@
5252
$phone = filter_input(INPUT_GET, 'phone');
5353

5454
$callback_url = 'http' . ($isSSL ? 's' : '') . '://' . $_SERVER['HTTP_HOST'] .
55-
$_SERVER['REQUEST_URI'] . '?invoiceid=' . rawurlencode($invoiceId);
55+
$_SERVER['SCRIPT_NAME'] . '?invoiceid=' . rawurlencode($invoiceId);
5656

5757
$txStatus = new stdClass();
58-
5958
// set url
6059
curl_setopt($ch, CURLOPT_URL, "https://api.paystack.co/transaction/initialize/");
6160

0 commit comments

Comments
 (0)