mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-09 01:18:18 +00:00
chore: comment out the payment service
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user