PHP & Laravel package, that makes working with Paystack api a breeze.

2.0.0 2025-01-05 16:44 UTC

This package is auto-updated.

Last update: 2025-01-05 16:48:02 UTC


README

Paystack client example

GitHub Workflow Status (master) Total Downloads Latest Version License

This package provides a wonderful PHP client that allows you to interact with Paystack Api

This SDK is a PHP & Laravel Package, (Designed to help working with paystack api easier and faster).

Requirement

Requires Composer Requires PHP 8.2+

Installation

 composer require musheabdulhakim/paystack

Basic usage

use MusheAbdulHakim\Paystack\Paystack;

$paystack = Paystack::client('your-api-key');

//or 

$paystack = Paystack::client('secret-api-key','https://api.paystack.co');

Example

$customers = $paystack->customer()->list();

$initialize_transaction = $paystack->transaction()->initialize([
    //
]);
Refer to the documentation here

Configuration

    'PAYSTACK_API_URI' => 'https://api.paystack.co',

    'PAYSTACK_SECRET_KEY' => '',

    'PAYSTACK_PUBLIC_KEY' => '',

Contribution

๐Ÿงน Keep a modern codebase with php-cs-fixer:

composer lint

๐Ÿš€ Run the entire test suite:

composer test

Report all your issues Here

All your pull requests are welcome :).