我正在尝试将payumoney支付网关集成到我的网站中。我能够完成交易。然而,我正在寻找一种方法来获取作为特定交易的交易费收取的金额。交易成功后,我在payumoney服务器发送的交易响应对象中找不到此字段,请帮助我。
例子:
-
用户从我的网站上以13卢比的价格购买产品
-
Payumoney收取本次交易的费用0.26卢比(根据商户仪表板上的详细信息)
-
如何从代码中获取此值(我无法在payumoney的响应对象中找到此参数)
响应对象:
{“country”:“,”udf10”:“,”discount”:“0.00”,“cardToken”:“789ce930df72d5693adfc”,“mode”:“DC”,
“cardhash”:“回发参数中不再支持此字段。”,
“error\u Message”:“No error”,“state”:“,”bankcode“:”MAST“,”txnid“:”34“,
“surl”:
https://www.payumoney.com/sandbox/payments/guestcheckout/#/success/C1322832E8E9405073A84889297EE9A2
",
“net\u amount\u debit”:“13”,“lastname”:“,”zipcode”:“,”phone”:“8106563221”,“productinfo”:“f944ee9f-012b-11e8-a760-0A787ECA1O6”,
“哈希”:“FF8A864CCCACE0EEDCA9B38451B452E532F58CCC1D50A10082FFE6C3EDC12F725E85D5A0ABFFD7E93D0B18D00C64325E60F8E75A4F275EE91CCF5849A782DC7”,
“status”:“success”,“firstname”:“s”,“city”:“error”:“E000”,“addedon”:“2018-01-25 00:23:47”,“udf9”:“udf7”:“udf8”:“,
“encryptedPaymentId”:“C1322832E8E9405073A84889297EE9A2”,“bank\u ref\u num”:“1767731230808250”,“key”:“hSvWi682”,“email”:s@hotmail.com",
“amount”:“13.0”,“unappedstatus”:“captured”,“address2”:“,”payuMoneyId”:“19991”,“address1”:“,”udf5”:“,”mihpayid”:“11208”,“udf6”:“,”udf3”:“,
“udf4”:“”、“udf1”:“”、“udf2”:“”、“field1”:“802583846517”、“cardnum”:“401200XXXXXX1112”、“field7”:“”、“field6”:“”,
“furl”:
https://www.payumoney.com/sandbox/payments/guestcheckout/#/failure/C1322832E8E9405073A84889297EE9A2
“,”field9“:”SUCCESS“,”field8“:”,
“amount\u split”:“{\”PAYU\“:\”13.0\“}”,“field3”:“1767731230805250”,“field2”:“999999”,“field5”:“,”PG\u TYPE”:“HDFCPG”,“field4”:“1767731230805250”,
“name\u on\u card”:“nameoncard1”,“txnStatus”:“SUCCESS”,“txnMessage”:“Transaction Successful”}