- fix elang callback
This commit is contained in:
parent
75425aca4a
commit
ab9b0c1907
|
@ -40,6 +40,26 @@ export class PpobCallbackController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Public()
|
||||||
|
@Get('/elang')
|
||||||
|
async getElang(@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,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Public()
|
@Public()
|
||||||
@Get('/metro')
|
@Get('/metro')
|
||||||
async getMetro(@Req() request: FastifyRequest) {
|
async getMetro(@Req() request: FastifyRequest) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user