An open API service indexing awesome lists of open source software.

https://github.com/musheabdulhakim/paystack

Paystack API Library For PHP and Laravel applications.
https://github.com/musheabdulhakim/paystack

payment-gateway paystack paystack-api paystack-library paystack-sdk php php8 sdk

Last synced: 9 months ago
JSON representation

Paystack API Library For PHP and Laravel applications.

Awesome Lists containing this project

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](https://paystack.com/docs)

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

## Requirement
> **Requires [Composer](https://getcomposer.org/)**
> **Requires [PHP 8.2+](https://php.net/releases/)**


## Installation

```bash
composer require musheabdulhakim/paystack
```

## Basic usage

```php

use MusheAbdulHakim\Paystack\Paystack;

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

//or

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

### Example
```php

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

$initialize_transaction = $paystack->transaction()->initialize([
//
]);

```

##### Refer to the documentation [here](https://musheabdulhakim.github.io/Paystack/)

### Configuration

```php

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

'PAYSTACK_SECRET_KEY' => '',

'PAYSTACK_PUBLIC_KEY' => '',
```

## Contribution

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

```bash
composer lint
```

๐Ÿš€ Run the entire test suite:

```bash
composer test
```

Report all your issues [Here](https://github.com/MusheAbdulHakim/Paystack/issues)

All your pull requests are welcome :).