问题描述
我通过Spring Boot应用程序与Payu集成。
已通过终端模板-https://test.payu.in/_payment'的其余模板以及所有必填字段(如商户密钥,txnid,金额,productinfo,名字,电子邮件,电话, surl,furl,hash,但是payu响应显示该字段
请求主体中缺少furl。
在这里,哈希是通过MessageDigest SHA-256算法使用hashSequence -key | txnid | amount | productinfo | firstname | email ||||||||||盐“生成的。
找到以下有关控制器代码和邮递员请求的详细信息:
邮递员请求:
POST /payment/payu HTTP/1.1
Host: localhost:8080
Authorization: 3yFfqME/WIdeDKJdsdewSeDVFz3RYZMCDgWsM=
Content-Type: application/x-www-form-urlencoded
firstname=Swati&phone=9899999999&productInfo=Donation&amount=800&email=xyz@gmail.com&furl=http://localhost:8080/payment/payment-response-failure&hash=4bcb0d64d85d47ab89ab90372b14b5484451aaecf3d325df9f2c5ff54a9704d5a89bce9f69bcf80bd6854006eea070858b06d7aa9d94956223ae3ea82&key=auJL3I4R&txnId=Dev75e75f95d0b3&surl=http://localhost:8080/payment/payment-response
错误说明
SORRY!We were unable to process your payment</h2>
Error Reason
Mandatory parameters which must be sent in the transaction are:
key,txnid,amount,productinfo,firstname,email,phone,surl,furl,hash
The parameters which you have actually sent in the transaction are:
key,hash,phone
您的帮助将不胜感激!
解决方法
使用UTF-8生成网址。