-fix url for login and transaction si hemat

This commit is contained in:
Fadli 2022-09-26 14:38:51 +07:00
parent 9b14685a92
commit 45064ee853
3 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,7 @@ export const doTransaction = async (
code: `${productCode}`,
type: `${typePaid}`,
};
const res = await axios.post(`${supplier.url}`, data, options);
const res = await axios.post(`${supplier.url}/v1/transaction/request`, data, options);
return res.data;
}

View File

@ -6,9 +6,9 @@ export const doAuthorizeHemat = async (user, pass, supplier) => {
username: `${user}`,
password: `${pass}`,
};
const res = await axios.post(`${supplier.url}`, data);
const res = await axios.post(`${supplier.url}/authenticate`, data);
return res.data;
return res;
} catch (err) {
throw err;
}

View File

@ -1181,6 +1181,8 @@ export class TransactionService {
HttpStatus.BAD_REQUEST,
);
} else {
const updateTransaction = await this.callbackOrderFailed(
supplier_trx_id,
callback,