我正在使用nodejs进行payu API集成。在测试环境中,我得到的响应如下:
{"status":-1,"rows":0,"message":"Something went Wrong guid 3hnlpif04nu9nbascn1mom27le sessionId null","result":null,"guid":"3hnlpif04nu9nbascn1mom27le","sessionId":"null","errorCode":null}以下是我的代码
let url = `https://test.payumoney.com/treasury/merchant/refundPayment`;
url = `${url}?paymentId=${paymentID}&refundAmount=${transaction["amount"]}&merchantKey=${config['PAYU_MONEY'].merchantKey}`;
logger.debug("PayuService: initiateRefund: Refund attempt url: ", { url } );
let res = await request.post(url, {
headers: {
'authorization': config['PAYU_MONEY'].authHeader,
'cache-control': 'no-cache',
'Content-Type': 'application/json'
}
})其中,paymentID来自payu交易响应'payuMoneyId‘。
发布于 2020-11-04 19:23:43
退款接口不支持测试/沙盒环境。
直播环境退款接口如下:
请传递商家密钥、支付ID、金额
在Params和Authorization Header中。
https://stackoverflow.com/questions/60900904
复制相似问题