Merge pull request #1123 from Tria-plc/freight_feature/usermanagement

add log for payment
This commit is contained in:
marshal
2026-08-05 17:21:47 +03:00
committed by GitHub

View File

@@ -169,6 +169,14 @@ export class CbeBillService {
async pay(dto: CbePaymentRequestDto): Promise<CbePaymentResponseDto> {
this.assertEnabled();
this.logger.log({
msg: "cbe.payment.request",
billId: dto.Bill_Id,
endToEndTxnId: dto.End_To_End_Txn_Id,
cbeTxnRef: dto.Cbe_Txn_Ref,
request: dto,
});
// §6.5 idempotency on CBE's per-attempt id, in order.
const prior = await this.cbeBillRepository.findByEndToEndTxnId(
dto.End_To_End_Txn_Id,