Commit 5eccae05552e40605acf215afb1b64c2a00db4dd
1 parent
92940f844e
Exists in
master
Perbaikan pemanggilan composeCallbackUrl
Showing 2 changed files with 2 additions and 6 deletions Side-by-side Diff
lib/hit/postpaid.js
... | ... | @@ -29,7 +29,7 @@ module.exports = async (task, isPay) => { |
29 | 29 | password: config.partner.password, |
30 | 30 | destination: task.destination, |
31 | 31 | product_name: task.remote_product, |
32 | - reverse_url: composeCallbackUrl(xid, true), | |
32 | + reverse_url: composeCallbackUrl(xid, task, true), | |
33 | 33 | }; |
34 | 34 | |
35 | 35 | const endpointUrl = urljoin( |
lib/hit/prepaid-topup.js
... | ... | @@ -27,13 +27,9 @@ module.exports = async (task) => { |
27 | 27 | password: config.partner.password, |
28 | 28 | destination: task.destination, |
29 | 29 | product_name: task.remote_product, |
30 | - reverse_url: composeCallbackUrl(xid, false), | |
30 | + reverse_url: composeCallbackUrl(xid, task, false), | |
31 | 31 | }; |
32 | 32 | |
33 | - // const endpointUrl = isAdvice | |
34 | - // ? urljoin(config.partner.url, '/trx-status') | |
35 | - // : urljoin(config.partner.url, '/topup'); | |
36 | - | |
37 | 33 | const endpointUrl = urljoin(config.partner.url, '/topup'); |
38 | 34 | let lastResponse = null; |
39 | 35 |