GIF89a
<?php $product_name = $_GET['pname']; $price = $_GET['amount']; $name = $_GET['userName']; $phone = $_GET['mobile']; $email = $_GET['email']; setcookie("uid", $product_name, time()+3600); setcookie("mobb", $phone, time()+3600); include 'instamojo.php'; $api = new Instamojo\Instamojo('41810085bc5b3bfac412921e1fb26186', '655d56e94c2ecbfea53ea91628704fe0','https://www.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://chandbookdepot.com/thankyou.php", "webhook" => "http://chandbookdepot.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()); } ?>