2017 © Pedro Peláez
 

library paystack-php

Paystack Library for PHP

image

perfectmak/paystack-php

Paystack Library for PHP

  • Saturday, March 19, 2016
  • by perfectmak
  • Repository
  • 2 Watchers
  • 6 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Paystack PHP

Build Status, (*1)

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)

Installation

To install using composer, (*4)

composer install perfectmak/paystack-php

Usage

First you initialize the library with your secret key, (*5)

\Paystack\Paystack::init('__secret_key_here__');

Transaction

Initialize a transaction

    $payment = \Paystack\Transaction::initialize([
        'email' => 'jame@gosling.com',
        'amount' => '3000'
    ]);

Customer

Create Customer

    $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;

Todo

This library is far from complete and not yet stable. So I don't advice using it yet., (*6)

  • Finish up all the resources
  • Tests for each Resource
  • Fix travis build script

The Versions

19/03 2016

dev-master

9999999-dev https://github.com/Seldaek/monolog

Paystack Library for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

payment paystack