Overview
The collection API enables you to process card payments directly from your backend, without redirecting customers to Novac’s checkout page. This integration gives you complete control over the payment experience. this is useful when you intend to collect card payment yourself. If your system is not PCI-compliant, you should use the create checkout payment and use prebuilt checkout to complete payment or Custom Checkout for USSD and Bank transfer payment. When you collect customers card information, it’s important that you encrypt this details so it’s safe and secure to prevent man in the middle attack. We have provided a way to encrypt and decrypt card information instead of writing a fully fledge encryption algorithm, before passing to the collection API on initialization. See how to encrypt with Novac for more details on encryption. 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 secret API keys: required for making authenticated API calls.
- You are also required to be PCI DSS certified (Level 1) to make use of our collection APIs.
Payment methods
Payment methods
Your clients will pay via :
- Card Payment (It’s a direct card charge API)
Initiate a direct card charge
To initialize a direct card charge.- Make a POST request to this endpoint
api/v1/direct-card-charge. - Collect and encrypt customer card data such as
number,expiryMonth,expiryYear,cvvandpin.
Request
Response
api/v1/direct-card-charge-auth.
Complete 3DS challenge
What is a 3DS Challenge?
3D Secure (3DS) is an extra layer of authentication mandated by card networks like Visa, Mastercard, and Verve to enhance payment security and reduce fraud. When a customer’s bank requires 3DS verification, the customer is redirected to the bank’s authentication page to confirm the transaction — usually by entering a one-time password (OTP), PIN, or using biometric verification. In the Direct Card Charge flow, Novac automatically detects when a card transaction requires 3DS authentication and returns anauthUrl or an authMode value such as 3DS.
Your system should then call the /api/v1/threedschallenge endpoint to complete this challenge and continue the payment process.
Request
What’s Next?
Learn how to verify transactions after payment is completed by following any of the guides below:-
Using Webhooks: Automatically receive payment status updates from Novac when a transaction is completed.
Learn how to verify a transaction via webhooks -
Using the Callback URL: Manually verify the payment using the
referenceparameter sent to your callback URL.
Learn how to verify a transaction using a callback reference