mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 08:48:11 +00:00
add log for payment
This commit is contained in:
@@ -169,6 +169,14 @@ export class CbeBillService {
|
|||||||
async pay(dto: CbePaymentRequestDto): Promise<CbePaymentResponseDto> {
|
async pay(dto: CbePaymentRequestDto): Promise<CbePaymentResponseDto> {
|
||||||
this.assertEnabled();
|
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.
|
// §6.5 idempotency on CBE's per-attempt id, in order.
|
||||||
const prior = await this.cbeBillRepository.findByEndToEndTxnId(
|
const prior = await this.cbeBillRepository.findByEndToEndTxnId(
|
||||||
dto.End_To_End_Txn_Id,
|
dto.End_To_End_Txn_Id,
|
||||||
|
|||||||
Reference in New Issue
Block a user