From d99b429636a7c49f9fd660ffd72f5a07860e053c Mon Sep 17 00:00:00 2001 From: Phantom Date: Tue, 24 May 2022 22:38:13 +0200 Subject: [PATCH] Added verifyAccount to verification.js --- README.md | 1 + resources/verification.js | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index b840ea1..80d8ede 100644 --- a/README.md +++ b/README.md @@ -223,6 +223,7 @@ const paystack = new Paystack("secret_key"); * resolveAccount * resolveBIN * resolvePhone + * verifyAccount * nuban * create * list diff --git a/resources/verification.js b/resources/verification.js index b40e8e0..2120e34 100644 --- a/resources/verification.js +++ b/resources/verification.js @@ -45,5 +45,22 @@ module.exports = { resolvePhone: { method: "post", route: `/verifications` + }, + + /* + Account Validation + */ + validateAccount: { + method: "post", + route: `${route}/validate`, + args: [ + "bank_code", + "country_code", + "account_number", + "account_name", + "account_type", + "document_type", + "document_number" + ] } };