-fix callback hemat to post
-fix getting callback
This commit is contained in:
parent
f8accba15d
commit
7f76d10062
|
@ -135,9 +135,9 @@ export class PpobCallbackController {
|
||||||
@Public()
|
@Public()
|
||||||
@Post('/hemat')
|
@Post('/hemat')
|
||||||
async getHemat(@Req() request: FastifyRequest) {
|
async getHemat(@Req() request: FastifyRequest) {
|
||||||
const response = request.query;
|
const response = request.body;
|
||||||
console.log('responsehemat', response);
|
console.log('responsehemat', response);
|
||||||
console.log('responsehemat2', request);
|
console.log('responsehemat2', request.body);
|
||||||
if (response['msg'] != 'Transaksi Sukses') {
|
if (response['msg'] != 'Transaksi Sukses') {
|
||||||
//TODO: UPDATE GAGAL
|
//TODO: UPDATE GAGAL
|
||||||
await this.transactionService.checkCallbackOrderFailed(
|
await this.transactionService.checkCallbackOrderFailed(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user