PHP code example of stephenjude / paystack-lite
1. Go to this page and download the library: Download stephenjude/paystack-lite 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/ */
stephenjude / paystack-lite example snippets
use Stephenjude\PaystackLite\Facades\PaystackLite;
/**
* This gets all your transactions
*/
PaystackLite::api()->transactions()->list();
/**
* This verifies a transaction with transaction reference passed as parameter
*/
PaystackLite::api()->transactions()->verify($ref);
/**
* This gets all your paystack customers.
*/
PaystackLite::api()->customers()->list();
/**
* This gets all the plans that you have registered on Paystack
*/
PaystackLite::api()->plans()->list();