Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Input your API key (e.g. your public key) as a Bearer token to access this API.

Body

amount
number<double>

The amount to charge, in the main unit of the currency, not the smallest unit like kobo or cents. For example, 10.50 means USD 10.50 and 1000 means NGN 1,000

currency
string | null

The currency to charge in, like NGN or USD. For apple_pay and hosted_card, use USD, GBP, EUR, CAD or AUD. It defaults to NGN if you leave it out

reference
string | null

A unique reference you create for this charge, 16 to 50 characters long

email
string | null

The customer's email address

transactionType
string | null

The kind of transaction, which is always sale

enforceSecureAuth
boolean

Set to true to make the customer complete 3DS authentication, or false to charge without it if No-Auth is enabled on your account. It has no effect for apple_pay and hosted_card

redirectUrl
string | null

The page Novac sends the customer to after 3DS authentication or when a hosted payment has a final result. If you leave it out, Novac uses the callback URL on your dashboard

metaData
string | null

Any extra information you want to keep with the transaction, sent as a JSON string like {"orderId":"1024"}

paymentMethod
string | null
default:card

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

cardData
object | null

The customer's card details, sent as they are without encryption. Needed only when paymentMethod is card, so leave it out for apple_pay and hosted_card

Response

200 - application/json

OK

status
boolean

Shows whether the request succeeded, true if it did and false if it failed

message
string | null

A short message that describes the result of the request

data
object | null

Tells you how the card payment is authenticated and what to do next