【发布时间】:2020-11-26 17:32:00
【问题描述】:
在为 paytm 业务创建交易令牌时,我收到以下错误作为 paytm 的响应。
CURL 请求(根据文档,https://developer.paytm.com/docs/initiate-transaction-api/?ref=payments)
curl -X POST 'https://securegw-stage.paytm.in/theia/api/v1/initiateTransaction?mid=hkmbcA45014017456710&orderId=ORDERID_2' \
--header 'Content-Type: application/json' \
--data '{"body":{"requestType":"Payment","mid":"hkmbcA45014017456710","websiteName":"WEBSTAGING","orderId":"ORDERID_2","txnAmount":{"value":"1.00","currency":"INR"},"userInfo":{"custId":"CUST_001"},"callbackUrl":"https://merchant.com/callback"},"head":{"signature":"E3g+4XifD5/XwcD/tJ9ePYJTlJGZL7BneqY4Vf32faqEJ8zkSvgM+pMWfCAfmb0VwQaT3M4p6e+grMXjeqsRScF7en86MjLY1ieA9WRf4w="}}'
回应
{"head":{"requestId":null,"responseTimestamp":"1596714537669","version":"v1"},"body":{"extraParamsMap":null,"resultInfo":{"resultStatus":"F","resultCode":"2005","resultMsg":"Checksum provided is invalid"}}}
我在 ruby 中使用 https://github.com/paytm/Paytm_Ruby_Checksum/blob/master/PaytmChecksum.rb
生成了校验和也欢迎回答和小建议!!!
【问题讨论】:
-
嗨@Bharathiraja,你有什么解决方法吗?我也面临同样的问题。你能帮帮我吗?
-
我在生产 api 密钥方面面临同样的问题,paytm 支持没有回复?
标签: payment-gateway paytm