Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging
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['msg'] != 'Transaksi Sukses') {
 | 
			
		||||
      //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