Go Live
Work through this list before you take real payments. Everything here should already be working in the sandbox.
Account
- BillPay has approved your business. Until then, production payments return
422. - Your fee agreement with BillPay is in place, and you know who pays the fee (you, the customer, or both).
- A payout account is added and verified, so settlements can reach you.
- Team members have the right roles, and two-step sign-in is on.
Keys
- You created a production key (
BPG_PROD-…) in Live mode. -
BILLPAY_BASE_URLishttps://api.billpay.et, andBILLPAY_API_KEYis the production key. - The key is only on your server. It isn't in frontend code, a mobile app, or Git.
Payments
- Every create request sends an
Idempotency-Key(your order ID). - Each
merchantReferenceis used for one payment only. -
returnUrlandcancelUrlpoint to your live domain overhttps. - Orders are marked paid only after
PaymentCaptured, or a status check that returnsCAPTURED. Never after the redirect alone. - Orders still pending after 30 minutes are checked automatically, since cancelled and expired payments don't send webhooks yet.
Webhooks
- A production endpoint is registered. Sandbox endpoints don't receive live events.
- Your server uses the production signing secret.
- The URL is public, uses
https, and doesn't redirect. - The signature is checked on the raw body, and requests older than 5 minutes are rejected.
- Each
eventIdis handled only once. - Your handler answers within 10 seconds.
Errors
- You log the
X-Request-Idof every failed request. - You retry only
429,503, and504, with the sameIdempotency-Key.
Final check
- Make one small real payment and see it under Transactions in Live mode.
- Confirm the
PaymentCapturedwebhook reached your server. - Refund it with the Refunds API, and confirm
PaymentRefundedarrived.