dev-master
9999999-dev https://github.com/Seldaek/monologPaystack Library for PHP
MIT
The Requires
- nategood/httpful *
- php >=5.5
The Development Requires
payment paystack
Paystack Library for PHP
Paystack PHP is a library for using the Paystack API from PHP., (*2)
While there are other PHP libraries for Paystack, this library is designed to make it less cumbersome to implement a payment flow on the Paystack payment platform., (*3)
To install using composer, (*4)
composer install perfectmak/paystack-php
First you initialize the library with your secret key, (*5)
\Paystack\Paystack::init('__secret_key_here__');
$payment = \Paystack\Transaction::initialize([ 'email' => 'jame@gosling.com', 'amount' => '3000' ]);
$customer = \Paystack\Customer::create([ 'email' => 'google@gosling.com', 'first_name' => 'Perfect', 'last_name' => 'Makanju', 'phone' => 'xxxxxxx' ]); echo 'Customer\'s first name is: '.$customer->first_name;
This library is far from complete and not yet stable. So I don't advice using it yet., (*6)
Paystack Library for PHP
MIT
payment paystack