Merge branch 'development' into 'devops-staging'
fix: callback metro See merge request empatnusabangsa/ppob/ppob-backend!151
This commit is contained in:
commit
151b1e6055
|
@ -44,12 +44,18 @@ export class PpobCallbackController {
|
||||||
statusCode: HttpStatus.OK,
|
statusCode: HttpStatus.OK,
|
||||||
message: 'success',
|
message: 'success',
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
@Public()
|
||||||
|
@Get('/metro')
|
||||||
|
async getMetro(@Req() request: FastifyRequest) {
|
||||||
|
const response = request.query;
|
||||||
|
|
||||||
if (response['status'] != 20) {
|
if (response['status'] != 20) {
|
||||||
//TODO: UPDATE GAGAL
|
//TODO: UPDATE GAGAL
|
||||||
const updateTransaction =
|
const updateTransaction =
|
||||||
await this.transactionService.callbackOrderFailed(
|
await this.transactionService.callbackOrderFailed(
|
||||||
response['clientid'],
|
response['refid'],
|
||||||
response,
|
response,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -58,11 +64,12 @@ export class PpobCallbackController {
|
||||||
statusCode: HttpStatus.BAD_REQUEST,
|
statusCode: HttpStatus.BAD_REQUEST,
|
||||||
message: 'failed to proccess',
|
message: 'failed to proccess',
|
||||||
};
|
};
|
||||||
} else {
|
}
|
||||||
|
|
||||||
//TODO: UPDATE BERHASIL
|
//TODO: UPDATE BERHASIL
|
||||||
const updateTransaction =
|
const updateTransaction =
|
||||||
await this.transactionService.callbackOrderSuccess(
|
await this.transactionService.callbackOrderSuccess(
|
||||||
response['clientid'],
|
response['refid'],
|
||||||
response,
|
response,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -71,7 +78,6 @@ export class PpobCallbackController {
|
||||||
statusCode: HttpStatus.OK,
|
statusCode: HttpStatus.OK,
|
||||||
message: 'success',
|
message: 'success',
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
this.logger.log({
|
this.logger.log({
|
||||||
requestQuery: request.query,
|
requestQuery: request.query,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user