razorpay仪表盘中未显示Razorpay订单ID和订单ID(授权状态)

时间:2019-11-23 11:09:35

标签: javascript php razorpay

在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();
});

0 个答案:

没有答案