chore: comment out the payment service

This commit is contained in:
Nathnael
2026-08-02 18:07:15 +00:00
parent a9e6c0dc6f
commit ed27170301

View File

@@ -1130,20 +1130,20 @@ export class BillingService {
// An OTP intent (CAC Bank) is NOT paid yet — the payer still has to enter the // An OTP intent (CAC Bank) is NOT paid yet — the payer still has to enter the
// code — so the demo shortcut must never fire for it. Same for CBE_BILL: its // code — so the demo shortcut must never fire for it. Same for CBE_BILL: its
// bill must stay open until CBE actually settles it via /cbe/payment. // bill must stay open until CBE actually settles it via /cbe/payment.
if ( // if (
!result.immediateSuccess && // !result.immediateSuccess &&
result.response.clientAction?.type !== "COLLECT_OTP" && // result.response.clientAction?.type !== "COLLECT_OTP" &&
opts.method !== "CBE_BILL" // opts.method !== "CBE_BILL"
) { // ) {
await this.payment.handlePaymentEvent({ // await this.payment.handlePaymentEvent({
eventType: "payment.succeeded", // eventType: "payment.succeeded",
eventId: `demo-${result.intentId}`, // eventId: `demo-${result.intentId}`,
referenceId: invoice.sourceId, // referenceId: invoice.sourceId,
intentId: result.intentId, // intentId: result.intentId,
providerTxnId: result.providerTxnId, // providerTxnId: result.providerTxnId,
paidAt: (result.paidAt ?? new Date()).toISOString(), // paidAt: (result.paidAt ?? new Date()).toISOString(),
}); // });
} // }
if (result.immediateSuccess) { if (result.immediateSuccess) {
await this.settleByPaymentId( await this.settleByPaymentId(