| TEST NAME |
QUANTITY |
PRICE |
TOTAL |
|
|
|
|
' . $sum . '
';
} else {
$sum = $total_price;
?>
' . $sum . '
';
}
}
if (isset($_POST['deletemembership']) && $_POST['deletemembership'] == "remove") {
unset($_SESSION["delmembership"]);
$sum = $total_price;
}
?>
|
|
3456,
'amount' => $finalamount * 100,
'currency' => 'INR',
'payment_capture' => 1
];
$razorpayOrder = $api->order->create($orderData);
$razorpayOrderId = $razorpayOrder['id'];
$_SESSION['razorpay_order_id'] = $razorpayOrderId;
$displayAmount = $amount = $orderData['amount'];
if ($displayCurrency !== 'INR') {
$url = "https://api.fixer.io/latest?symbols=$displayCurrency&base=INR";
$exchange = json_decode(file_get_contents($url), true);
$displayAmount = $exchange['rates'][$displayCurrency] * $amount / 100;
}
$data = [
"key" => $keyId,
"amount" => $finalamount,
"name" => $row['Name'],
"image" => "",
"prefill" => [
"name" => $row['Name'],
"email" => $row['EmailID'],
"contact" => $row['MobileNo'],
],
"notes" => [
//"address" => $_POST['address'],
// "merchant_order_id" => "12312321",
],
"theme" => [
"color" => "#ED316B"
],
"order_id" => $razorpayOrderId,
];
if ($displayCurrency !== 'INR') {
$data['display_currency'] = $displayCurrency;
$data['display_amount'] = $displayAmount;
}
$json = json_encode($data);
//echo $json;
?>
|
|
Your cart is empty!";
}
?>