Overview
Checkout payments are transactions initiated via the Novac API. They allow your customers to complete payments through our secure prebuilt checkout or your own custom interface. When you create a checkout payment, typically you should expect apaymentRedirectUrl in the response object that is returned. You you can open this redirect url on a new tab for your customers to complete the payment via a prebuilt Novac checkout.
In this guide you will learn how to create a checkout payment with a unique transaction reference. We offer two ways to create a checkout payment.
- Create a checkout payment with payment link reference
- Create a checkout payment with a unique transaction reference
When creating a checkout payment with payment link reference, the payment completed are usually tied to the payment link that was created on the dashboard and you can view the transactions completed by viewing the single transaction associated with the payment link on the dashboard.
In this tutorial, we will explain step-by-step how you can create a checkout payment with a unique transaction reference.
Prerequisite
See details
See details
Before you begin, ensure that you’ve completed the following steps:
- Create a merchant account: make sure your account is created and KYC is completed.
- Obtain your public API keys: required for making authenticated API calls.
- Understand how to create a checkout payment with payment link reference: helps you choose between a payment link reference and a transaction reference.
- Understand how to complete payments: essential to know how to finalize payments after creation.
Payment methods
Payment methods
Your clients can choose to pay via :
- Card Payment
- Bank transfer
- USSD payment
Create a checkout payment with a transaction reference
To create a checkout transaction:- Generate a unique transaction reference (minimum of 16 characters).
This reference must be unique per transaction. - Make a POST request to the
/api/v1/initiateendpoint.
currency field accepts USD, NGN, or EUR.
You can set your redirectUrl in the API request or from your dashboard under the API Keys section.
If you don’t pass a
If no redirect URL is found, you’ll be required to provide one explicitly.
redirectUrl in your request, Novac will use the default one you configured on your dashboard.If no redirect URL is found, you’ll be required to provide one explicitly.
Request
paymentRedirectUrl to complete the payment using our prebuilt checkout, or use the transactionReference to handle a custom checkout experience.
Response