Я интегрировал платежи Razorpay с помощью PHP, и при получении платежа я получаю сообщение об ошибке со следующими ошибками.
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 Подпись
Примечание: сумма, сгенерированная для оплаты, в моем случае динамична!
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": "[email protected]",
"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
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": "[email protected]",
"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