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
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 acheckoutUrl to redirect the customer and a transactionReference to track the payment.
- Prebuilt Checkout
- Custom Checkout
Use Novac’s hosted checkout page to complete payment, all payment methods included based on your preference settings.Redirect the customer to the
Request
checkoutUrl returned in the response.Full guide > Prebuilt CheckoutHandle the Callback
After payment, Novac redirects the customer back to yourcallbackURL with query parameters:
Verify the Transaction
Make a server-side GET request to confirm the actual payment status from Novac’s API.Request
Response
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.
Handle Refunds
If a customer requests a refund, use Novac’s Refund API. You can issue a full or partial refund.Full Refund
What’s Next?
- Best Practices - Security and reliability guidelines for production integrations.
- Common Errors - Troubleshoot failed requests and API error codes.
- Testing - Simulate payment flows in the test environment before going live.