如何从 payumoney 交易响应中获取 payumoney 费用
How to get payumoney fees from payumoney transaction response
我正在尝试将 payumoney 支付网关集成到我的网站中。我能够完成交易。但是,我正在寻找一种方法来获取已作为特定交易的交易费用收取的金额。交易成功后payumoney服务器发送的交易响应对象中找不到该字段,请帮帮我
示例:
用户以 Rs 的价格购买了产品。 13 来自我的网站
Payumoney 对此次交易收取 0.26 卢比的费用(根据商家仪表板上提供的详细信息)
如何从代码中获取此值(我无法在 payumoney 的响应对象中找到此参数)
响应对象:
{"country":"","udf10":"","discount":"0.00","cardToken":"789ce930df72d5693adfc","mode":"DC" ,
"cardhash":"This field is no longer supported in postback params.",
"error_Message":"No Error","state":"","bankcode":"MAST","txnid":"34",
"surl":"https://www.payumoney.com/sandbox/payments/guestcheckout/#/success/C1322832E8E9405073A84889297EE9A2",
"net_amount_debit":"13","lastname":"","zipcode":"","phone":"8106563221","productinfo":"f944ee9f-012b-11e8-a760-0a787eca10a6",
"hash":"ff8a864cccace0eedca9b38451b452e532f58ccc1d50a10082ffe6c3edc12f7255e85d5a0abffd7e93d0b18d00c64325e60f8e75a4f275ee91ccf5849a782dc7",
"status":"success","firstname":"s","city":"","error":"E000","addedon" :"2018-01-25 00:23:47","udf9":"","udf7":"","udf8":"",
"encryptedPaymentId":"C1322832E8E9405073A84889297EE9A2","bank_ref_num":"1767731230080250","key":"hSvWi682","email":"s@hotmail.com",
"amount":"13.0","unmappedstatus":"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_split":"{\"PAYU\":\"13.0\"}","field3":"1767731230080250","field2":"999999","field5":" ","PG_TYPE":"HDFCPG","field4":"1767731230080250",
"name_on_card":"nameoncard1","txnStatus":"SUCCESS","txnMessage":"Transaction Successful"}
如果其他人也在为这个问题苦苦挣扎。答案是 PayU 服务器在对 return 交易费用的响应对象中没有任何参数。因此,我们可能会根据所使用的信用卡类型或付款方式来跟踪交易费用。
我正在尝试将 payumoney 支付网关集成到我的网站中。我能够完成交易。但是,我正在寻找一种方法来获取已作为特定交易的交易费用收取的金额。交易成功后payumoney服务器发送的交易响应对象中找不到该字段,请帮帮我
示例:
用户以 Rs 的价格购买了产品。 13 来自我的网站
Payumoney 对此次交易收取 0.26 卢比的费用(根据商家仪表板上提供的详细信息)
如何从代码中获取此值(我无法在 payumoney 的响应对象中找到此参数)
响应对象: {"country":"","udf10":"","discount":"0.00","cardToken":"789ce930df72d5693adfc","mode":"DC" , "cardhash":"This field is no longer supported in postback params.", "error_Message":"No Error","state":"","bankcode":"MAST","txnid":"34", "surl":"https://www.payumoney.com/sandbox/payments/guestcheckout/#/success/C1322832E8E9405073A84889297EE9A2", "net_amount_debit":"13","lastname":"","zipcode":"","phone":"8106563221","productinfo":"f944ee9f-012b-11e8-a760-0a787eca10a6", "hash":"ff8a864cccace0eedca9b38451b452e532f58ccc1d50a10082ffe6c3edc12f7255e85d5a0abffd7e93d0b18d00c64325e60f8e75a4f275ee91ccf5849a782dc7", "status":"success","firstname":"s","city":"","error":"E000","addedon" :"2018-01-25 00:23:47","udf9":"","udf7":"","udf8":"", "encryptedPaymentId":"C1322832E8E9405073A84889297EE9A2","bank_ref_num":"1767731230080250","key":"hSvWi682","email":"s@hotmail.com", "amount":"13.0","unmappedstatus":"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_split":"{\"PAYU\":\"13.0\"}","field3":"1767731230080250","field2":"999999","field5":" ","PG_TYPE":"HDFCPG","field4":"1767731230080250", "name_on_card":"nameoncard1","txnStatus":"SUCCESS","txnMessage":"Transaction Successful"}
如果其他人也在为这个问题苦苦挣扎。答案是 PayU 服务器在对 return 交易费用的响应对象中没有任何参数。因此,我们可能会根据所使用的信用卡类型或付款方式来跟踪交易费用。