Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging
This commit is contained in:
commit
cd978afd7d
|
@ -23,14 +23,14 @@ export class PpobCallbackController {
|
||||||
response['clientid'],
|
response['clientid'],
|
||||||
response,
|
response,
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
|
||||||
|
//TODO: UPDATE BERHASIL
|
||||||
|
await this.transactionService.checkCallbackOrderSuccess(
|
||||||
|
response['clientid'],
|
||||||
|
response,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: UPDATE BERHASIL
|
|
||||||
await this.transactionService.checkCallbackOrderSuccess(
|
|
||||||
response['clientid'],
|
|
||||||
response,
|
|
||||||
);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Public()
|
@Public()
|
||||||
|
|
|
@ -1077,18 +1077,19 @@ export class TransactionService {
|
||||||
HttpStatus.BAD_REQUEST,
|
HttpStatus.BAD_REQUEST,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
const updateTransaction = await this.callbackOrderFailed(
|
||||||
const updateTransaction =
|
|
||||||
await this.callbackOrderFailed(
|
|
||||||
supplier_trx_id,
|
supplier_trx_id,
|
||||||
callback,
|
callback,
|
||||||
);
|
);
|
||||||
|
|
||||||
return {
|
throw new HttpException(
|
||||||
updateTransaction,
|
{
|
||||||
statusCode: HttpStatus.BAD_REQUEST,
|
updateTransaction,
|
||||||
message: 'failed to proccess',
|
statusCode: HttpStatus.BAD_REQUEST,
|
||||||
};
|
error: 'updated transaction to failed',
|
||||||
|
},
|
||||||
|
HttpStatus.BAD_REQUEST,
|
||||||
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1124,11 +1125,14 @@ export class TransactionService {
|
||||||
callback,
|
callback,
|
||||||
);
|
);
|
||||||
|
|
||||||
return {
|
throw new HttpException(
|
||||||
updateTransaction,
|
{
|
||||||
statusCode: HttpStatus.OK,
|
updateTransaction,
|
||||||
message: 'success',
|
statusCode: HttpStatus.OK,
|
||||||
};
|
error: 'success',
|
||||||
|
},
|
||||||
|
HttpStatus.OK,
|
||||||
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user