Skip to main content

Overview

The Verification class provides methods for verifying various Paystack entities including bank accounts and card BINs. This helps you validate customer information before processing payments.

Methods

resolveAccount

Resolves a bank account number to an account name. This is useful for confirming the account details before initiating a transfer.

Parameters

string
required
The bank account number you want to verify
string
required
The bank code of the bank where the account is held. You can get this from the listBanks method

Response

boolean
Indicates whether the request was successful
string
A message describing the result
object
The account details

validateAccount

Validates a customer’s account number using their identity information. This provides enhanced verification beyond simple name resolution.

Parameters

string
required
The name on the account
string
required
The bank account number to validate
enum
required
The type of account. Options: personal, business
string
required
The bank code where the account is held
string
required
The country code (e.g., “NG” for Nigeria, “GH” for Ghana)
enum
required
The type of document being used for verification. Options: identityNumber, passportNumber, businessRegistrationNumber
string
The document number (optional depending on requirements)

Response

boolean
Indicates whether the request was successful
string
A message describing the result
object
The validation result

resolveCardBin

Resolves a card BIN (Bank Identification Number) to get card and bank details. The first 6 digits of a card number make up the BIN.

Parameters

string
required
The first 6 digits of the card number

Response

boolean
Indicates whether the request was successful
string
A message describing the result
object
The card BIN details

Error Handling

All methods return a result object with data and error properties. Always check for errors:

Miscellaneous

Get list of supported banks for verification

Paystack Verification API

Official Paystack Verification API documentation