-fix url for login and transaction si hemat
This commit is contained in:
		| @@ -37,7 +37,7 @@ export const doTransaction = async ( | |||||||
|         code: `${productCode}`, |         code: `${productCode}`, | ||||||
|         type: `${typePaid}`, |         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; |       return res.data; | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -6,9 +6,9 @@ export const doAuthorizeHemat = async (user, pass, supplier) => { | |||||||
|             username: `${user}`, |             username: `${user}`, | ||||||
|             password: `${pass}`, |             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) { |     } catch (err) { | ||||||
|         throw err; |         throw err; | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -1181,6 +1181,8 @@ export class TransactionService { | |||||||
|           HttpStatus.BAD_REQUEST, |           HttpStatus.BAD_REQUEST, | ||||||
|       ); |       ); | ||||||
|     } else { |     } else { | ||||||
|  |  | ||||||
|  |  | ||||||
|       const updateTransaction = await this.callbackOrderFailed( |       const updateTransaction = await this.callbackOrderFailed( | ||||||
|           supplier_trx_id, |           supplier_trx_id, | ||||||
|           callback, |           callback, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user