feat(billing): add PAYMENT_PROCESSING invoice status on payment success redirect (all except CBE bill)

This commit is contained in:
Marshal
2026-08-05 12:59:37 +00:00
parent 26837d5a7d
commit b7dcc1bf0a
20 changed files with 160 additions and 3 deletions

View File

@@ -107,6 +107,11 @@ export const paymentsService = {
return data.data ?? data;
},
/** Success-redirect ack: payment → processing, invoice → PAYMENT_PROCESSING. */
acknowledgeSuccessRedirect: async (bookingId: string): Promise<void> => {
await client.post(P.REDIRECT_SUCCESS(bookingId));
},
checkoutUrl: buildCheckoutUrl,
checkoutUrlForInvoice: buildCheckoutUrlForInvoice,
};