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
The bank account number you want to verify
The bank code of the bank where the account is held. You can get this from the listBanks method
Response
Indicates whether the request was successful
A message describing the result
The account details
validateAccount
Validates a customer’s account number using their identity information. This provides enhanced verification beyond simple name resolution.Parameters
The name on the account
The bank account number to validate
The type of account. Options:
personal, businessThe bank code where the account is held
The country code (e.g., “NG” for Nigeria, “GH” for Ghana)
The type of document being used for verification. Options:
identityNumber, passportNumber, businessRegistrationNumberThe document number (optional depending on requirements)
Response
Indicates whether the request was successful
A message describing the result
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
The first 6 digits of the card number
Response
Indicates whether the request was successful
A message describing the result
The card BIN details
Error Handling
All methods return a result object withdata and error properties. Always check for errors:

