Skip to main content

Prerequisites

Before you begin, make sure you have:
  1. An Orafi account — sign up here
  2. A completed business profile (onboarding)
  3. Your test API key from the dashboard
Both test and live environments use the same base URL: https://api.orafi.app. Your API key determines which mode you’re operating in.

Step 1 — Create a payment

Use the hosted checkout flow to create a payment. Orafi returns a checkoutUrl that you redirect your customer to.
Response:
Redirect your customer to the checkoutUrl. They’ll complete the payment there, then be sent back to your redirectUrl.

Step 2 — Verify the payment

Once the customer is redirected back, verify the payment status server-side.
Response:

Instead of polling, register a webhook to get notified in real-time when payments complete or fail.
Then subscribe to events:
See the Webhooks guide for full setup details.

Next steps

Set up webhooks

Receive real-time payment notifications.

Create paylinks

No-code shareable payment pages.

Configure payouts

Withdraw settled funds to crypto or fiat.

Full API reference

Explore every endpoint.