在Razorpay的测试模式下,除了订单ID外,还有其他付款细节,请使用JavaScript,告诉我怎么来?
<button type="butoon" id="paymentclick">pay amount</button>
<script src="https://checkout.razorpay.com/v1/checkout.js"></script>
<script type="text/javascript">
$('#paymentclick').on('click', function() {
var options = {
"key": "rzp_test_xxxx",
"amount": 100,
"name": "MERCHANT name",
"description": "description",
"image": "img/logo.png",
"handler": function (response) {
console.log(response);
},
"prefill": {
"name": "ABC",
"email": 'A@A.COM',
"contact": '+919123456780'
},
"notes": {
"address": "address" //customer address
}
}
console.log(options);
var propay = new Razorpay(options);
propay.open();
});