1. Go to this page and download the library: Download elite/strowallet-sdk 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/ */
elite / strowallet-sdk example snippets
use Elite\StrowalletLaravel\Facades\Strowallet as StrowalletFacade;
// Get list of banks
$banks = StrowalletFacade::bank()->getBankList();
// Perform bank transfer
$response = StrowalletFacade::bank()->bankTransfer(
amount: '50000',
bankCode: '058',
accountNumber: '0123456789',
narration: 'Transfer for invoice',
nameEnquiryRef: 'ref123456',
senderName: 'Elite Corp'
);
use Elite\StrowalletLaravel\Strowallet;
class WalletController extends Controller
{
public function showBalance(Strowallet $strowallet)
{
$balance = $strowallet->wallet()->getWalletBalance();
return response()->json($balance);
}
}