Skip to Content
đź‘‹ Welcome to 100Pay Developers
DocsBank TransfersVerify Bank Account

Verify Bank Account

Before sending money, verify the recipient’s account number to confirm the account name and ensure you’re sending to the right person. Always do this before executing a transfer.

Always verify an account before transferring. Sending to an incorrect account number may result in an unrecoverable loss of funds.

Usage

import { Pay100 } from "@100pay-hq/100pay.js"; const client = new Pay100({ publicKey: "your_public_key", secretKey: "your_secret_key", }); const result = await client.bankTransfer.verifyBank({ bankCode: "044", // From the getBankList() response accountNumber: "1234567890", }); if (result.data.verified) { console.log("Account name:", result.data.accountName); // => "JOHN DOE" } else { console.error("Account not found or verification failed"); }

Parameters

FieldTypeRequiredDescription
bankCodestringâś…Bank code from getBankList()
accountNumberstring✅Recipient’s bank account number

Response

{ "statusCode": 200, "message": "Account verified", "data": { "accountName": "JOHN DOE", "accountNumber": "1234567890", "bankCode": "044", "bankName": "Access Bank", "verified": true } }

IVerifyBankResponse

FieldTypeDescription
data.verifiedbooleantrue if the account exists and was verified
data.accountNamestringAccount holder’s registered name
data.accountNumberstringThe account number that was verified
data.bankCodestringBank code of the account
data.bankNamestringFull bank name

Displaying to Users

Use the verified name to let users confirm the recipient before proceeding:

const verification = await client.bankTransfer.verifyBank({ bankCode: selectedBank.bankCode, accountNumber: userInputAccountNumber, }); if (verification.data.verified) { // Display for user confirmation showConfirmationPrompt({ message: `Sending to: ${verification.data.accountName}`, onConfirm: () => executeTransfer(verification.data), }); } else { showError("We could not verify this account. Please check the details."); }

Next Steps

Last updated on