Overview
In some cases, you may want to process payments outside of UniBee using your own gateway or a third‑party checkout, while still using UniBee to:- Generate invoices
- Track payment status
- Keep subscription and revenue data consistent
- UniBee issues and manages the invoice
- The actual payment happens in an external system
- Your backend calls UniBee APIs to update the external payment link and to mark the invoice as paid or refunded once the external gateway finishes processing
- Integrating with an in‑house payment system or legacy gateway
- Using a regional payment aggregator not directly supported as a UniBee gateway
- Migrating gradually from an existing billing system to UniBee
Typical Workflow
- Create an invoice in UniBee (via the normal invoice creation flow / API).
- Redirect the customer to your external checkout using your own payment link.
- Update the invoice payment link in UniBee so that internal users can see and reuse the external payment URL if needed.
- Mark the invoice as paid in UniBee after the external gateway confirms success.
- (Optional) Mark the invoice as refunded in UniBee if you process a refund in the external system.
- Update invoice status (
Paid,Refunded, etc.) - Trigger the appropriate subscription behavior (e.g., activate or renew a subscription when an invoice is paid)
- Emit webhook events such as
invoice.paidorinvoice.refund.success
For a full integration guide (security, webhooks, and common patterns), see
External Gateway Integration Guide.

