i am trying to integrate instamojo payment gateway on my website
$product_name = "Buy Wine";
$price = $sub_total;
$name = $_POST['f_name'].' '.$_POST['l_name'];
$phone = $_POST['phone'];
$email = $_POST['email'];
include 'src/instamojo.php';
$api = new Instamojo\Instamojo('api_key', 'auth_token','https://test.instamojo.com/api/1.1/');
try {
$response = $api->paymentRequestCreate(array(
"purpose" => $product_name,
"amount" => $price,
"buyer_name" => $name,
"phone" => $phone,
"send_email" => true,
"send_sms" => true,
"email" => $email,
'allow_repeated_payments' => false,
"redirect_url" => "http://trezeefoods.com/thankyou.php",
"webhook" => "http://trezeefoods.com/webhook.php"
));
//print_r($response);
$pay_ulr = $response['longurl'];
//Redirect($response['longurl'],302); //Go to Payment page
header("Location: $pay_ulr");
exit();
}
catch (Exception $e) {
print('Error: ' . $e->getMessage());
}
here i trying to pass product id on success page in response like
"order_id" => 1234,
but i can't receive this on success page