fix: callback
This commit is contained in:
parent
284ae2416b
commit
9bdda9e8bf
|
@ -51,6 +51,9 @@ export class PpobCallbackController {
|
|||
async getMetro(@Req() request: FastifyRequest) {
|
||||
const response = request.query;
|
||||
|
||||
if (response['message'].include('CEK TAGIHAN')) {
|
||||
console.log("messagenya tuh",response['message'])
|
||||
} else {
|
||||
if (response['status'] != 20) {
|
||||
//TODO: UPDATE GAGAL
|
||||
const updateTransaction =
|
||||
|
@ -72,12 +75,7 @@ export class PpobCallbackController {
|
|||
response['refid'],
|
||||
response,
|
||||
);
|
||||
|
||||
return {
|
||||
updateTransaction,
|
||||
statusCode: HttpStatus.OK,
|
||||
message: 'success',
|
||||
};
|
||||
}
|
||||
|
||||
this.logger.log({
|
||||
requestQuery: request.query,
|
||||
|
|
Loading…
Reference in New Issue
Block a user