PHP code example of starfolksoftware / paystack-php
1. Go to this page and download the library: Download starfolksoftware/paystack-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/ */
starfolksoftware / paystack-php example snippets
tarfolkSoftware\Paystack\Client as PaystackClient;
$paystack = new PaystackClient([
'secretKey' => '*******',
]);
$response = $paystack
->transactions
->all([]);
var_dump($response['data'][0]);
\\ dumps
array(21) { ... }
...
bash
composer