Skip to main content

Overview

E-commerce platforms need a payment experience that is fast, familiar, and resilient. Customers expect to pay by card, bank transfer, or USSD without friction, and merchants need real-time confirmation of payment before fulfilling orders. Novac covers all of this, from initiating a checkout session and presenting a payment UI, to verifying the result server-side and issuing refunds when needed.

How It Works


Prerequisites

See details

  • Create an account with completed KYC
  • Obtain your API keys Public key for checkout, Secret key for verification and refunds
  • A publicly accessible callbackURL where Novac will redirect customers after payment
  • A webhookURL registered in your Novac dashboard for server-to-server event notifications

Create a Checkout Payment

When a customer clicks “Pay”, your server initiates a checkout payment with Novac. This returns a checkoutUrl to redirect the customer and a transactionReference to track the payment.
Use Novac’s hosted checkout page to complete payment, all payment methods included based on your preference settings.
Request
Redirect the customer to the checkoutUrl returned in the response.Full guide > Prebuilt Checkout

Handle the Callback

After payment, Novac redirects the customer back to your callbackURL with query parameters:
Never trust the status parameter in the callback URL alone. Always verify the transaction server-side before fulfilling an order.

Verify the Transaction

Make a server-side GET request to confirm the actual payment status from Novac’s API.
Request
Response
Only fulfill the order when data.status is "successful". Full guide → Verify a Transaction

Listen for Webhooks

In addition to the callback, configure a webhook so your server receives real-time event notifications — even if the customer closes the browser before being redirected.
Webhook Payload (example)
Always verify the transaction via the API after receiving a webhook. Do not rely solely on the webhook payload for order fulfilment.
Full guide → Webhooks

Handle Refunds

If a customer requests a refund, use Novac’s Refund API. You can issue a full or partial refund.
Full Refund
Full guide → Refund a Transaction

What’s Next?