I am trying to change the call back URL from one URL to another. Current callback URL is
header("Location: ".$gatewayParams['systemurl']."/viewinvoice.php?id=" . $merchant_order_id);
I wanted to change the URL to https://example.com/cart.php?a=complete
When I tried replacing /viewinvoice.php?id= with /cart.php?a=complete I am getting redirected to https://example.com/cart.php, and the ?a=complete gets stripped.
Can someone tell me the way to reach https://example.com/cart.php?a=complete
Please Note: 1. I am not a PHP developer, so if you are suggesting something, kindly provide a full code snippet. 2. My goal is to redirect the user to the 'https://example.com/cart.php?a=complete'. It is Okay to make it hardcoded if it needs programmatic logic. 3. Please find the actual use case here
I found that if I can get this callback URL fixed, then it will solve my problem
$_GET['variable']variable before calling the header function and access it onviewinvoice.php