Merge branch 'master' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-production
This commit is contained in:
		| @@ -139,12 +139,14 @@ export class PpobCallbackController { | ||||
|     console.log('responsehemat', response); | ||||
|     console.log('responsehemat2', request.body); | ||||
|     if (response['msg'] != 'Transaksi Sukses') { | ||||
|       console.log('masukgagalhemat', 'msk') | ||||
|       //TODO: UPDATE GAGAL | ||||
|       await this.transactionService.checkCallbackOrderFailed( | ||||
|           response['data']['idtransaction'], | ||||
|           response, | ||||
|       ); | ||||
|     } else { | ||||
|       console.log('masuksukseshemat', 'msk') | ||||
|       //TODO: UPDATE BERHASIL | ||||
|       await this.transactionService.checkCallbackOrderSuccess( | ||||
|           response['data']['idtransaction'], | ||||
|   | ||||
| @@ -1562,15 +1562,20 @@ export class TransactionService { | ||||
|     dataTransaction.status = statusTransaction.SUCCESS; | ||||
|  | ||||
|     if (supplier.code == 'Hemat') { | ||||
|       console.log('masukhemat', callback) | ||||
|       if (callback['sn']) { | ||||
|         console.log('masuksnhemat', 'msk') | ||||
|         dataTransaction.seri_number = callback['sn']; | ||||
|       } else { | ||||
|         console.log('masuksnhemat2', 'msk') | ||||
|         dataTransaction.seri_number = callback['data']['serial_number']; | ||||
|       } | ||||
|  | ||||
|       if (callback['hrg']) { | ||||
|         console.log('mskcbhargahemat', 'msk') | ||||
|         dataProductHistoryPrice.price = callback['hrg']; | ||||
|       } else if (callback['data']['additional']['harga']) { | ||||
|         console.log('mskcbhargahemat1', 'msk') | ||||
|         dataProductHistoryPrice.price = parseInt(callback['data']['additional']['harga']); | ||||
|       } | ||||
|     } else if (supplier.code == 'Digiflazz') { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user