PHP code example of digikraaft / paystack-php
1. Go to this page and download the library: Download digikraaft/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/ */
digikraaft / paystack-php example snippets
bash
composer
{API_NAME}::{API_END_POINT}();
use Digikraaft\Paystack\Paystack;
use Digikraaft\Paystack\Customer;
Paystack::setApiKey('sk_1234abcd');
$customer = Customer::fetch('CUS_abc1234');
if ($customer->status && $customer->status == true) {
echo $customer->data->first_name;
}