-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
27 lines (26 loc) · 936 Bytes
/
test.html
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
<button id="btn">Pay now</button>
<script type="text/javascript" src="https://checkout.razorpay.com/v1/razorpay.js"></script>
<script>
var razorpay = new Razorpay({
key: 'rzp_live_rUN93PAO8mDFKa'
});
var btn = document.querySelector('#btn');
btn.addEventListener('click', function() {
razorpay.createPayment({
amount: 0,
currency: 'INR',
email: 'gaurav.kumar@example.com',
contact: '9111145678',
order_id: 'order_MSh9VX9APyDDu5',
customer_id: 'cust_MSeoyMrCBOZ8se',
recurring: '1',
method: 'emandate',
bank: 'HDFC',
auth_type: 'netbanking',
'bank_account[name]': 'Gaurav Kumar',
'bank_account[account_number]': '50100183769252',
'bank_account[account_type]': 'savings',
'bank_account[ifsc]': 'HDFC0000088'
});
})
</script>