在RazorPay中捕获付款时出错。未定义的索引,razorpay_signature

时间:2017-10-16 13:56:13

标签: php razorpay

我使用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签名

enter image description here 注意:在我的情况下,为付款生成的金额是动态的!

2 个答案:

答案 0 :(得分:0)

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

set keychainPassword to "yourpasswordgoeshere"

tell application "System Events"
    repeat while exists (processes where name is "SecurityAgent")
        tell process "SecurityAgent"
            delay 0.1
            try
                set value of text field 1 of window 1 to keychainPassword
                click button "Allow" of window 1
            end try
        end tell
    end repeat
end tell

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

答案 1 :(得分:-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