> ## Documentation Index
> Fetch the complete documentation index at: https://developer.novacpayment.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Direct Card Charge (No Encryption)



## OpenAPI

````yaml post /api/v1/card-charge
openapi: 3.0.1
info:
  title: NOVAC API
  version: v1
servers:
  - url: https://api.novacpayment.com/
security:
  - Bearer: []
paths:
  /api/v1/card-charge:
    post:
      tags:
        - Collection
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UnencryptedCardChargeRequest'
            example:
              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'
          text/json:
            schema:
              $ref: '#/components/schemas/UnencryptedCardChargeRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/UnencryptedCardChargeRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                    description: >-
                      Shows whether the request succeeded, true if it did and
                      false if it failed
                  message:
                    type: string
                    nullable: true
                    description: A short message that describes the result of the request
                  data:
                    type: object
                    nullable: true
                    description: >-
                      Tells you how the card payment is authenticated and what
                      to do next
                    properties:
                      authMode:
                        type: string
                        description: >-
                          How the card payment is authenticated, such as
                          no-auth, 3ds or PIN
                      authAction:
                        type: string
                        description: >-
                          What you need to do next, redirect to send the
                          customer to redirectUrl, verify to resubmit with the
                          fields requested, or none if nothing else is needed
                      authEndpoint:
                        type: string
                        description: >-
                          The endpoint to call to finish authentication, or none
                          if no call is needed
                      authMessage:
                        type: string
                        description: Explains the authentication result or the next step
                      friendlyMessage:
                        type: string
                        description: A message you can show the customer as it is
                      redirectUrl:
                        type: string
                        description: >-
                          The page to send the customer to for authentication or
                          payment, empty if no redirect is needed
                      responseCode:
                        type: string
                        description: >-
                          The result code of the charge, where 00 means it was
                          approved
                      responseDescription:
                        type: string
                        description: Explains the result code
                      fields:
                        type: array
                        items:
                          type: string
                        description: >-
                          The fields you need to add to the card data before you
                          resubmit the charge, like pin
              examples:
                hostedRedirect:
                  summary: >-
                    Redirect to the Novac payment page (apple_pay or
                    hosted_card)
                  value:
                    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
                3dsAuthentication:
                  summary: 3DS authentication required
                  value:
                    status: true
                    message: Proceed with 3DS authentication
                    data:
                      authMode: 3ds
                      authAction: redirect
                      authEndpoint: v1/threedschallenge
                      authMessage: 'Redirect to the redirect url '
                      friendlyMessage: Proceed with user 3DS2 authentication
                      redirectUrl: >-
                        https://api.novacpayment.com/payer/auth/{reference}/initiate
                approvedNoAuth:
                  summary: Approved without authentication (No-Auth 2D)
                  value:
                    status: true
                    message: Transaction Approved
                    data:
                      responseCode: '00'
                      responseDescription: Transaction Approved
                pinRequired:
                  summary: PIN required (NGN cards)
                  value:
                    status: false
                    message: Please enter your PIN to continue
                    data:
                      authMode: PIN
                      authAction: verify
                      authEndpoint: v1/card-charge
                      authMessage: >-
                        PIN validation required, add the customer's 4-digit PIN
                        to the card data and resubmit
                      fields:
                        - pin
                pinNotSupported:
                  summary: Card not enrolled for PIN (NGN cards)
                  value:
                    status: false
                    message: Card is not enrolled for PIN authorization
                    data:
                      authMode: PIN
                      authAction: card_not_enrolled
                      friendlyMessage: Card is not enrolled for PIN authorization
components:
  schemas:
    UnencryptedCardChargeRequest:
      type: object
      properties:
        amount:
          type: number
          format: double
          description: >-
            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:
          type: string
          nullable: true
          description: >-
            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:
          type: string
          nullable: true
          description: >-
            A unique reference you create for this charge, 16 to 50 characters
            long
        email:
          type: string
          nullable: true
          description: The customer's email address
        transactionType:
          type: string
          nullable: true
          description: The kind of transaction, which is always sale
        enforceSecureAuth:
          type: boolean
          description: >-
            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:
          type: string
          nullable: true
          description: >-
            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:
          type: string
          nullable: true
          description: >-
            Any extra information you want to keep with the transaction, sent as
            a JSON string like {"orderId":"1024"}
        paymentMethod:
          type: string
          nullable: true
          default: card
          description: >-
            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:
          type: object
          nullable: true
          description: >-
            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
          properties:
            number:
              type: string
              nullable: true
              description: The card number without spaces, like 5399830000000008
            expiryMonth:
              type: string
              nullable: true
              description: The month the card expires, as two digits like 07
            expiryYear:
              type: string
              nullable: true
              description: The year the card expires, as four digits like 2030
            cvv:
              type: string
              nullable: true
              description: The three-digit security code on the back of the card, like 289
            pin:
              type: string
              nullable: true
              description: >-
                The customer's 4-digit card PIN, like 1234. Needed only for NGN
                cards
          additionalProperties: false
      additionalProperties: false
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        Input your API key (e.g. your public key) as a Bearer token to access
        this API.
      name: Authorization
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.