首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在RazorPay中捕获付款时出错。未定义索引,razorpay_signature

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

Stack Overflow用户
提问于 2017-10-16 13:56:12
回答 2查看 2.1K关注 0票数 0

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

代码语言:javascript
复制
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签名

注:在我的情况下,为支付而产生的金额是动态的!

EN

回答 2

Stack Overflow用户

发布于 2018-08-02 17:57:21

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

代码语言:javascript
复制
{
    "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
}

29QQoUBi66xm2f/capture

票数 0
EN

Stack Overflow用户

发布于 2018-08-02 17:53:55

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

代码语言:javascript
复制
 - {
       "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 }

29QQoUBi66xm2f/capture

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46772092

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档