0

我已经使用 PHP 集成了 Razorpay 付款,但在捕获付款时出现错误,并出现以下错误。

Notice: Undefined index: razorpay_signature in /Applications/XAMPP/xamppfiles/htdocs/feedback/dashboard/admin/verify.php on line 27

Warning: hash_equals(): Expected user_string to be a string, null given in /Applications/XAMPP/xamppfiles/htdocs/feedback/dashboard/admin/razorpay-php/src/Utility.php on line 32

截屏:

未定义索引:Razorpay 签名

在此处输入图像描述 注意:在我的情况下,支付产生的金额是动态的!

4

2 回答 2

0

https://api.razorpay.com/v1/payments/:id/capture

{
    "id": "pay_7IZD7aJ2kkmOjk",
    "entity": "payment",
    "amount": 50000,
    "currency": "INR",
    "status": "captured",
    "order_id": null,
    "invoice_id": null,
    "international": false,
    "method": "wallet",
    "amount_refunded": 0,
    "refund_status": null,
    "captured": true,
    "description": "Purchase Description",
    "card_id": null,
    "bank": null,
    "wallet": "freecharge",
    "vpa": null,
    "email": "a@b.com",
    "contact": "91xxxxxxxx",
    "notes": {
        "merchant_order_id": "order id"
    },
    "fee": 1438,
    "tax": 188,
    "error_code": null,
    "error_description": null,
    "created_at": 1400826750
}

https://api.razorpay.com/v1/payments/pay_29QQoUBi66xm2f/capture

于 2018-08-02T17:57:21.270 回答
-1

https://api.razorpay.com/v1/payments/:id/capture

 - {
       "id": "pay_7IZD7aJ2kkmOjk",
       "entity": "payment",
       "amount": 50000,
       "currency": "INR",
       "status": "captured",
       "order_id": null,
       "invoice_id": null,
       "international": false,
       "method": "wallet",
       "amount_refunded": 0,
       "refund_status": null,
       "captured": true,
       "description": "Purchase Description",
       "card_id": null,
       "bank": null,
       "wallet": "freecharge",
       "vpa": null,
       "email": "a@b.com",
       "contact": "91xxxxxxxx",
       "notes": {
           "merchant_order_id": "order id"
       },
       "fee": 1438,
       "tax": 188,
       "error_code": null,
       "error_description": null,
       "created_at": 1400826750 }

https://api.razorpay.com/v1/payments/pay_29QQoUBi66xm2f/capture

于 2018-08-02T17:53:55.297 回答