PHP code example of hexxondiv / switchapp-laravel
1. Go to this page and download the library: Download hexxondiv/switchapp-laravel 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/ */
hexxondiv / switchapp-laravel example snippets
$switchAppService = new SwitchAppService($config);
Where `$config` is an array containing the following keys:
- `public_key:` Your SwitchApp API public key
- `secret_key:` Your SwitchApp API secret key
- `bvn:` Your Bank Verification Number (BVN)
- Call any of the available methods on the SwitchAppService instance to interact with the SwitchApp API.
For example: