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 payment-level APIs to update the external payment link and report payment/refund results after external 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 Payment link in UniBee so invoice and hosted entry points can redirect to your latest external checkout URL.
- Mark the Payment as paid in UniBee after your gateway confirms success.
- (Optional) Create/handle refund flow and report refund success/failed via External Gateway refund APIs.
- 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
payment.created,refund.created,invoice.paid, orinvoice.refund.success
For a full integration guide (security, webhooks, and common patterns), see
External Gateway Integration Guide.

