PHP code example of musheabdulhakim / paystack
1. Go to this page and download the library: Download musheabdulhakim/paystack 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/ */
musheabdulhakim / paystack example snippets
use MusheAbdulHakim\Paystack\Paystack;
$paystack = Paystack::client('your-api-key');
//or
$paystack = Paystack::client('secret-api-key','https://api.paystack.co');
$customers = $paystack->customer()->list();
$initialize_transaction = $paystack->transaction()->initialize([
//
]);
'PAYSTACK_API_URI' => 'https://api.paystack.co',
'PAYSTACK_SECRET_KEY' => '',
'PAYSTACK_PUBLIC_KEY' => '',