Merge branch 'development' into 'devops-staging'
fix: callback ppob See merge request empatnusabangsa/ppob/ppob-backend!178
This commit is contained in:
commit
c06b40e839
|
@ -59,7 +59,8 @@ export class PpobCallbackController {
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
false,
|
false,
|
||||||
)
|
response['message'],
|
||||||
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
statusCode: HttpStatus.OK,
|
statusCode: HttpStatus.OK,
|
||||||
|
@ -73,7 +74,8 @@ export class PpobCallbackController {
|
||||||
response['refid'],
|
response['refid'],
|
||||||
Number(splitMessage[9].replace(/^\D+/g, '')),
|
Number(splitMessage[9].replace(/^\D+/g, '')),
|
||||||
Number(splitMessage[11].replace(/^\D+/g, '')),
|
Number(splitMessage[11].replace(/^\D+/g, '')),
|
||||||
true
|
true,
|
||||||
|
response['message'],
|
||||||
);
|
);
|
||||||
//
|
//
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1847,6 +1847,7 @@ export class TransactionService {
|
||||||
amount: number,
|
amount: number,
|
||||||
admin: number,
|
admin: number,
|
||||||
status: boolean,
|
status: boolean,
|
||||||
|
message: string,
|
||||||
) {
|
) {
|
||||||
const billData = await this.findOneBillById(trxId);
|
const billData = await this.findOneBillById(trxId);
|
||||||
console.log(billData,"ini dia")
|
console.log(billData,"ini dia")
|
||||||
|
@ -1864,6 +1865,7 @@ export class TransactionService {
|
||||||
amount: status ? amount + product_price.partner_fee + product_price.mark_up_price : 0,
|
amount: status ? amount + product_price.partner_fee + product_price.mark_up_price : 0,
|
||||||
admin_price: admin,
|
admin_price: admin,
|
||||||
status: status ? 'SUCCESS' : 'FAILED',
|
status: status ? 'SUCCESS' : 'FAILED',
|
||||||
|
callback_json: JSON.stringify(message),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user