PHP code example of technolix / kudaopen_api_php

1. Go to this page and download the library: Download technolix/kudaopen_api_php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

technolix / kudaopen_api_php example snippets




// $environment = "DEVELOPMENT" || "PRODUCTION";

$environment = "DEVELOPMENT";
$Kudabank = (new KudabankController)
        ->Initialize("[email protected]", "6PZFIceatyxJAq9T4pd2", $environment);




// Fetch all Nigerian Banks
$Kudabank->bank_list()



$data =  [
            "email"=> '[email protected]', 
            "phoneNumber"=>"08074224016",
            "lastName"=>"Onyo", 
            "firstName"=>"Emmanuel", 
            "trackingReference"=> "12456522155421"
        ];

$Kudabank->create_virtual_account($data);

bash
  composer