diff --git a/lib/hit/postpaid.js b/lib/hit/postpaid.js index da436bf..e73f80a 100644 --- a/lib/hit/postpaid.js +++ b/lib/hit/postpaid.js @@ -29,7 +29,7 @@ module.exports = async (task, isPay) => { password: config.partner.password, destination: task.destination, product_name: task.remote_product, - reverse_url: composeCallbackUrl(xid, true), + reverse_url: composeCallbackUrl(xid, task, true), }; const endpointUrl = urljoin( diff --git a/lib/hit/prepaid-topup.js b/lib/hit/prepaid-topup.js index 294ea81..c31e600 100644 --- a/lib/hit/prepaid-topup.js +++ b/lib/hit/prepaid-topup.js @@ -27,13 +27,9 @@ module.exports = async (task) => { password: config.partner.password, destination: task.destination, product_name: task.remote_product, - reverse_url: composeCallbackUrl(xid, false), + reverse_url: composeCallbackUrl(xid, task, false), }; - // const endpointUrl = isAdvice - // ? urljoin(config.partner.url, '/trx-status') - // : urljoin(config.partner.url, '/topup'); - const endpointUrl = urljoin(config.partner.url, '/topup'); let lastResponse = null;