-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
36 lines (36 loc) · 1.1 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
require_once('config.php');
?>
<html>
<head>
<title> RazorPay Integration in PHP - phpexpertise.com </title>
<meta name="viewport" content="width=device-width">
<style>
.razorpay-payment-button {
color: #ffffff !important;
background-color: #7266ba;
border-color: #7266ba;
font-size: 14px;
padding: 10px;
}
</style>
</head>
<body>
<form action="charge.php" method="POST">
<!-- Note that the amount is in paise = 50 INR -->
<script
src="https://checkout.razorpay.com/v1/checkout.js"
data-key="<?php echo $razor_api_key; ?>"
data-amount="10000"
data-buttontext="Pay with Razorpay"
data-name="PHPExpertise.com"
data-description="Test Txn with RazorPay"
data-image="https://your-awesome-site.com/your_logo.jpg"
data-prefill.name="Harshil Mathur"
data-prefill.email="support@razorpay.com"
data-theme.color="#F37254"
></script>
<input type="hidden" value="Hidden Element" name="hidden">
</form>
</body>
</html>