GithubHelp home page GithubHelp logo

donejeh / nuban-api Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 3.0 18 KB

Nigeria-Bank-Account-Number-API Laravel Package You can use it to get the account name of any bank account in Nigeria

PHP 100.00%
bankaccount nigeria-api nubank nubank-interface

nuban-api's Introduction

Nigeria-Bank-Account-Number-API Laravel Package

You can use it to get the account name of any bank account in Nigeria

  • Lifetime Access. Unlimited Account Lookups

  • Enter account number and get the name and bank

  • Enter account number and bank code to get the account name

install via composer

composer require donejeh/nuban

Application Service Providers...

 Donejeh\Nuban\NubapiServiceProvider::class

Publish the config file

php artisan vendor:publish --provider="Donejeh\Nuban\NubapiServiceProvider" --tag="config"

Default config file contents

<?php

return [


    // The Host of the API.
    'host' => env('NUB_API_HOST', 'https://nubapi.com/api'),


    /**
     * Your API Token from (https://nubapi.com/user/api-tokens)
     *
     */
    'api_token' => env('NUB_API_TOKEN', ''),



     'options' => [
            // Validate number on your server without making an APi request.
            'validate_number_locally' => true,

             //This timeout applies to client connections and determine when
             //The whole response must be read before it exceeded
             'request_timeout' => 5,

        ]



];

API Usage

Sign up for a developer account by selecting the Sign Up button. After signing up, access your account dashboard.

You can follow these steps to obtain your API key and configure it in your application:

  1. Go to the API Create Access Tokens page.

  2. Generate your unique API key.

  3. Once you have your API key, insert it into either your .env file or the configuration file.

In your app controller

use Donejeh\Nuban\Nubapi;


$nubanApi = app(NubApi::class);
$response = $nubanApi->getAccountDetails('1056684123', '013');

print_r($response);


Response JSON

{
    "account_number": "0080******",
    "account_name": "Jane Doe",
    "first_name: : "Jane"
    "last_name: : "Doe"
    "Bank_name": "ACCESS BANK PLC",
    "bank_code": "044",
    "requests": "Free",
    "status": "success"
}

Useful links

For support and inquiry Whatsapp Me https://twitter.com/don_ejeh

A wrap and Special thank to https://github.com/olakunlevpn/Nigeria-Bank-Account-Number-API

Legal

Its very legal & safe

Security

Our API is highly secure and our system do not store any bank record

nuban-api's People

Contributors

donejeh avatar olakunlevpn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nuban-api's Issues

i'm getting his message: Account information not available

After integrating the nubapi, i was having this error message: {"status":false,"message":"Account information not available, Please try again or verify the submitted details."} after troubleshooting for errors
is there any other things i need to do?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.