-fix url for login and transaction si hemat
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -1181,6 +1181,8 @@ export class TransactionService {
|
||||
HttpStatus.BAD_REQUEST,
|
||||
);
|
||||
} else {
|
||||
|
||||
|
||||
const updateTransaction = await this.callbackOrderFailed(
|
||||
supplier_trx_id,
|
||||
callback,
|
||||
|
Reference in New Issue
Block a user