This is where your description should go. Take a look at contributing.md to see a to do list.
Via Composer
$ composer require prosperoking/paystack
After installing run vendor publish and select PaystackTransfer from the prompt
$ php artisan vendor:publish
- Validate an Account Number: Now you can have a bank account validator bankaccount to enable you to validate an account number you will need to pass the bankcode field to it.
Validator::validate($data,[
'bankcode'=>'required|string',
'account_no'=>'required|bankaccount,bankcode'
])
- Get Banks
Paystack::getBanks(); // returns a laravel collection
- Create a transfer Recipient
\PaystackTransfer::createTransferReciept($account_no,$bank_code, $account_name);
- Make a transfer
\PaystackTransfer::transfer($recipient_code, $amount, $reason);
- Get transfer
\PaystackTransfer::fetchTransfer(string $id_or_code);
- Get Transfer Balance
\PaystackTransfer::balance()
- Make Bulk Transfer
$payload = $transfers->map(fn(Transfer $transfer)=>[
'reference'=>$transfer->id,
'recipient'=>$transfer->recipient,
'amount'=> (int) round($transfer->amount * 100)
])->toArray();
\PaystackTransfer::bulkTransfer($payload);
Please see the changelog for more information on what has changed recently.
$ composer test
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email author email instead of using the issue tracker.
license. Please see the license file for more information.