- fix callback hemat
This commit is contained in:
		| @@ -131,4 +131,24 @@ export class PpobCallbackController { | ||||
|       } | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   @Public() | ||||
|   @Get('/hemat') | ||||
|   async getHemat(@Req() request: FastifyRequest) { | ||||
|     const response = request.query; | ||||
|  | ||||
|     if (response['statuscode'] == 2) { | ||||
|       //TODO: UPDATE GAGAL | ||||
|       await this.transactionService.checkCallbackOrderFailed( | ||||
|           response['clientid'], | ||||
|           response, | ||||
|       ); | ||||
|     } else { | ||||
|       //TODO: UPDATE BERHASIL | ||||
|       await this.transactionService.checkCallbackOrderSuccess( | ||||
|           response['clientid'], | ||||
|           response, | ||||
|       ); | ||||
|     } | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user