Skip to main content

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_URL is https://api.billpay.et, and BILLPAY_API_KEY is 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 merchantReference is used for one payment only.
  • returnUrl and cancelUrl point to your live domain over https.
  • Orders are marked paid only after PaymentCaptured, or a status check that returns CAPTURED. 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 eventId is handled only once.
  • Your handler answers within 10 seconds.

Errors​

  • You log the X-Request-Id of every failed request.
  • You retry only 429, 503, and 504, with the same Idempotency-Key.

Final check​

  • Make one small real payment and see it under Transactions in Live mode.
  • Confirm the PaymentCaptured webhook reached your server.
  • Refund it with the Refunds API, and confirm PaymentRefunded arrived.