Direct Card Charge (No Encryption)
POST
/
api
/
v1
/
card-charge
cURL
curl --request POST \
--url https://api.novacpayment.com/api/v1/card-charge \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1000,
"currency": "NGN",
"reference": "TXN-REF-20260101-002",
"email": "customer@example.com",
"transactionType": "sale",
"enforceSecureAuth": true,
"redirectUrl": "https://yoursite.com/payment/callback",
"metaData": "{\"orderId\":\"1024\"}",
"cardData": {
"number": "5399830000000008",
"expiryMonth": "07",
"expiryYear": "2030",
"cvv": "289",
"pin": "1234"
}
}
'import requests
url = "https://api.novacpayment.com/api/v1/card-charge"
payload = {
"amount": 1000,
"currency": "NGN",
"reference": "TXN-REF-20260101-002",
"email": "customer@example.com",
"transactionType": "sale",
"enforceSecureAuth": True,
"redirectUrl": "https://yoursite.com/payment/callback",
"metaData": "{\"orderId\":\"1024\"}",
"cardData": {
"number": "5399830000000008",
"expiryMonth": "07",
"expiryYear": "2030",
"cvv": "289",
"pin": "1234"
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 1000,
currency: 'NGN',
reference: 'TXN-REF-20260101-002',
email: 'customer@example.com',
transactionType: 'sale',
enforceSecureAuth: true,
redirectUrl: 'https://yoursite.com/payment/callback',
metaData: '{"orderId":"1024"}',
cardData: {
number: '5399830000000008',
expiryMonth: '07',
expiryYear: '2030',
cvv: '289',
pin: '1234'
}
})
};
fetch('https://api.novacpayment.com/api/v1/card-charge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.novacpayment.com/api/v1/card-charge",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 1000,
'currency' => 'NGN',
'reference' => 'TXN-REF-20260101-002',
'email' => 'customer@example.com',
'transactionType' => 'sale',
'enforceSecureAuth' => true,
'redirectUrl' => 'https://yoursite.com/payment/callback',
'metaData' => '{"orderId":"1024"}',
'cardData' => [
'number' => '5399830000000008',
'expiryMonth' => '07',
'expiryYear' => '2030',
'cvv' => '289',
'pin' => '1234'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.novacpayment.com/api/v1/card-charge"
payload := strings.NewReader("{\n \"amount\": 1000,\n \"currency\": \"NGN\",\n \"reference\": \"TXN-REF-20260101-002\",\n \"email\": \"customer@example.com\",\n \"transactionType\": \"sale\",\n \"enforceSecureAuth\": true,\n \"redirectUrl\": \"https://yoursite.com/payment/callback\",\n \"metaData\": \"{\\\"orderId\\\":\\\"1024\\\"}\",\n \"cardData\": {\n \"number\": \"5399830000000008\",\n \"expiryMonth\": \"07\",\n \"expiryYear\": \"2030\",\n \"cvv\": \"289\",\n \"pin\": \"1234\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.novacpayment.com/api/v1/card-charge")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 1000,\n \"currency\": \"NGN\",\n \"reference\": \"TXN-REF-20260101-002\",\n \"email\": \"customer@example.com\",\n \"transactionType\": \"sale\",\n \"enforceSecureAuth\": true,\n \"redirectUrl\": \"https://yoursite.com/payment/callback\",\n \"metaData\": \"{\\\"orderId\\\":\\\"1024\\\"}\",\n \"cardData\": {\n \"number\": \"5399830000000008\",\n \"expiryMonth\": \"07\",\n \"expiryYear\": \"2030\",\n \"cvv\": \"289\",\n \"pin\": \"1234\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novacpayment.com/api/v1/card-charge")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 1000,\n \"currency\": \"NGN\",\n \"reference\": \"TXN-REF-20260101-002\",\n \"email\": \"customer@example.com\",\n \"transactionType\": \"sale\",\n \"enforceSecureAuth\": true,\n \"redirectUrl\": \"https://yoursite.com/payment/callback\",\n \"metaData\": \"{\\\"orderId\\\":\\\"1024\\\"}\",\n \"cardData\": {\n \"number\": \"5399830000000008\",\n \"expiryMonth\": \"07\",\n \"expiryYear\": \"2030\",\n \"cvv\": \"289\",\n \"pin\": \"1234\"\n }\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Proceed to complete the payment",
"data": {
"authMode": "3ds",
"authAction": "redirect",
"authEndpoint": "v1/transaction/ORDER-7F3K9Q2M8X4T/verify",
"authMessage": "Redirect the customer to the redirect url",
"friendlyMessage": "Proceed to complete the payment",
"redirectUrl": "https://api.novacpayment.com/payer/auth/hosted/ORDER-7F3K9Q2M8X4T"
}
}Authorizations
Body
application/jsontext/jsonapplication/*+json
How the customer pays, which can be card, apple_pay or hosted_card. For apple_pay and hosted_card, leave out the card details and Novac returns a redirectUrl to a secure payment page. These methods must be turned on for your account. It defaults to card and isn't case-sensitive
Response
200 - application/json
OK
Was this page helpful?
cURL
curl --request POST \
--url https://api.novacpayment.com/api/v1/card-charge \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1000,
"currency": "NGN",
"reference": "TXN-REF-20260101-002",
"email": "customer@example.com",
"transactionType": "sale",
"enforceSecureAuth": true,
"redirectUrl": "https://yoursite.com/payment/callback",
"metaData": "{\"orderId\":\"1024\"}",
"cardData": {
"number": "5399830000000008",
"expiryMonth": "07",
"expiryYear": "2030",
"cvv": "289",
"pin": "1234"
}
}
'import requests
url = "https://api.novacpayment.com/api/v1/card-charge"
payload = {
"amount": 1000,
"currency": "NGN",
"reference": "TXN-REF-20260101-002",
"email": "customer@example.com",
"transactionType": "sale",
"enforceSecureAuth": True,
"redirectUrl": "https://yoursite.com/payment/callback",
"metaData": "{\"orderId\":\"1024\"}",
"cardData": {
"number": "5399830000000008",
"expiryMonth": "07",
"expiryYear": "2030",
"cvv": "289",
"pin": "1234"
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 1000,
currency: 'NGN',
reference: 'TXN-REF-20260101-002',
email: 'customer@example.com',
transactionType: 'sale',
enforceSecureAuth: true,
redirectUrl: 'https://yoursite.com/payment/callback',
metaData: '{"orderId":"1024"}',
cardData: {
number: '5399830000000008',
expiryMonth: '07',
expiryYear: '2030',
cvv: '289',
pin: '1234'
}
})
};
fetch('https://api.novacpayment.com/api/v1/card-charge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.novacpayment.com/api/v1/card-charge",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 1000,
'currency' => 'NGN',
'reference' => 'TXN-REF-20260101-002',
'email' => 'customer@example.com',
'transactionType' => 'sale',
'enforceSecureAuth' => true,
'redirectUrl' => 'https://yoursite.com/payment/callback',
'metaData' => '{"orderId":"1024"}',
'cardData' => [
'number' => '5399830000000008',
'expiryMonth' => '07',
'expiryYear' => '2030',
'cvv' => '289',
'pin' => '1234'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.novacpayment.com/api/v1/card-charge"
payload := strings.NewReader("{\n \"amount\": 1000,\n \"currency\": \"NGN\",\n \"reference\": \"TXN-REF-20260101-002\",\n \"email\": \"customer@example.com\",\n \"transactionType\": \"sale\",\n \"enforceSecureAuth\": true,\n \"redirectUrl\": \"https://yoursite.com/payment/callback\",\n \"metaData\": \"{\\\"orderId\\\":\\\"1024\\\"}\",\n \"cardData\": {\n \"number\": \"5399830000000008\",\n \"expiryMonth\": \"07\",\n \"expiryYear\": \"2030\",\n \"cvv\": \"289\",\n \"pin\": \"1234\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.novacpayment.com/api/v1/card-charge")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 1000,\n \"currency\": \"NGN\",\n \"reference\": \"TXN-REF-20260101-002\",\n \"email\": \"customer@example.com\",\n \"transactionType\": \"sale\",\n \"enforceSecureAuth\": true,\n \"redirectUrl\": \"https://yoursite.com/payment/callback\",\n \"metaData\": \"{\\\"orderId\\\":\\\"1024\\\"}\",\n \"cardData\": {\n \"number\": \"5399830000000008\",\n \"expiryMonth\": \"07\",\n \"expiryYear\": \"2030\",\n \"cvv\": \"289\",\n \"pin\": \"1234\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novacpayment.com/api/v1/card-charge")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 1000,\n \"currency\": \"NGN\",\n \"reference\": \"TXN-REF-20260101-002\",\n \"email\": \"customer@example.com\",\n \"transactionType\": \"sale\",\n \"enforceSecureAuth\": true,\n \"redirectUrl\": \"https://yoursite.com/payment/callback\",\n \"metaData\": \"{\\\"orderId\\\":\\\"1024\\\"}\",\n \"cardData\": {\n \"number\": \"5399830000000008\",\n \"expiryMonth\": \"07\",\n \"expiryYear\": \"2030\",\n \"cvv\": \"289\",\n \"pin\": \"1234\"\n }\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "Proceed to complete the payment",
"data": {
"authMode": "3ds",
"authAction": "redirect",
"authEndpoint": "v1/transaction/ORDER-7F3K9Q2M8X4T/verify",
"authMessage": "Redirect the customer to the redirect url",
"friendlyMessage": "Proceed to complete the payment",
"redirectUrl": "https://api.novacpayment.com/payer/auth/hosted/ORDER-7F3K9Q2M8X4T"
}
}