Skip to content

Commit 5ecdcb0

Browse files
committed
release(mno): Show messages for mno checkout response
1 parent 8552773 commit 5ecdcb0

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

apps/mno/src/modules/azampay/services/azam.service.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,19 @@ export class AzamService {
116116
payload: RestCheckout,
117117
token: TokenResponse | ErrorResponse,
118118
) => {
119-
const bankCheckout = await token.mnoCheckout(
119+
const mnoCheckout = await token.mnoCheckout(
120120
payload.checkout as MnoCheckout,
121121
payload.options,
122122
);
123-
if (bankCheckout.success && bankCheckout?.transactionId?.length > 4) {
124-
return bankCheckout;
123+
Logger.debug(
124+
`MNO CHECKOUT ${mnoCheckout.msg ?? mnoCheckout.message}`,
125+
'MNO CHECKOUT',
126+
);
127+
if (mnoCheckout.success) {
128+
return mnoCheckout;
125129
}
126130
return {
127-
...bankCheckout,
131+
...mnoCheckout,
128132
statusCode: HttpStatus.BAD_REQUEST,
129133
status: HttpStatus.BAD_REQUEST,
130134
};

0 commit comments

Comments
 (0)