PHPackages                             stephenjude/paystack-lite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. stephenjude/paystack-lite

Abandoned → [stephenjude/laravel-payment-gateways](/?search=stephenjude%2Flaravel-payment-gateways)ArchivedLibrary[Payment Processing](/categories/payments)

stephenjude/paystack-lite
=========================

Paystack Lite - Use Paystack Checkout Form on the go.

4.0.0(4y ago)211.4k↑100%1MITPHP

Since Aug 9Pushed 4y agoCompare

[ Source](https://github.com/stephenjude/paystack-lite)[ Packagist](https://packagist.org/packages/stephenjude/paystack-lite)[ Docs](https://github.com/stephenjude/paystack-lite)[ RSS](/packages/stephenjude-paystack-lite/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (14)Used By (0)

 [![](https://camo.githubusercontent.com/caf02a771f98df0fe442a5fadf409dedff1302a173e1763fd37d2ccddc76b6ee/68747470733a2f2f6d69726f2e6d656469756d2e636f6d2f6d61782f3532392f312a48306d67726754434361776d6f54365a654d696571512e706e67)](https://camo.githubusercontent.com/caf02a771f98df0fe442a5fadf409dedff1302a173e1763fd37d2ccddc76b6ee/68747470733a2f2f6d69726f2e6d656469756d2e636f6d2f6d61782f3532392f312a48306d67726754434361776d6f54365a654d696571512e706e67)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a5a5aea9099950d7742a37294931c5fb5db18bbe44e788ac2c088b1f2bf477b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7374657068656e6a7564652f706179737461636b2d6c6974652e737667)](https://packagist.org/packages/stephenjude/paystack-lite)[![Build Status](https://camo.githubusercontent.com/f1b050bdb3da9037dde94ae528203198fadffb081c08d8545d89c2c32244e661/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7374657068656e6a7564652f706179737461636b2d6c6974652f6d61737465722e737667)](https://travis-ci.com/stephenjude/paystack-lite.svg?branch=master)[![Quality Score](https://camo.githubusercontent.com/62819edd3118fb6159d64d011dc78b59cc83dc507dc7521ade5c77d4ad926ac0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7374657068656e6a7564652f706179737461636b2d6c6974652e737667)](https://scrutinizer-ci.com/g/stephenjude/paystack-lite)[![GitHub license](https://camo.githubusercontent.com/cf4c4c00a1d3488d5bd2be3d837ca87f5926d02682f723d5a59b94bbe24b025e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7374657068656e6a7564652f706179737461636b2d6c6974652e737667)](https://github.com/stephenjude/paystack-lite/blob/master/LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/7fa7ff0da73758152fecdc8048bcf6c9be043c3f785622b7093fbda957d469f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7374657068656e6a7564652f706179737461636b2d6c6974652e737667)](https://packagist.org/packages/stephenjude/paystack-lite)

\# Paystack Lite - Use Paystack Checkout Form on the go. Paystack Lite creates a blade directive you can include in your views. This is the easiest integration of paystack checkout form for Laravel applications. Installation
------------

[](#installation)

1. Install PaystackLite with composer

```
composer require stephenjude/paystack-lite
```

2. if you are using Laravel less than 5.4 Add `Stephenjude\PaystackLite\PaystackLiteServiceProvider::class` to the `providers` array in your `config/app.php`.
3. Open your .env file and add your public key, secret key, customer default email and payment url like so:

```
PAYSTACK_PUBLIC_KEY=xxxxxxxxxxxxx
PAYSTACK_SECRET_KEY=xxxxxxxxxxxxx

```

Usage
-----

[](#usage)

Paystack-lite make use of blade directive to abstract away all javascript configurations for setting up paystack checkout forms.

### Paystack Popup Example

[](#paystack-popup-example)

Include the Blade Directive (`@paystack`) somewhere in your template before your main application JavaScript is loaded.

The `@paystack` blade directive creates `payWithPaystack(amount, email, meta, onPaymentCompleted, onPaymentCancelled)` JavaScript helper which takes five parameters. the amount, customer email, meta data, callback for payment completed and callback when checkout form is closed.

```
    var amount = 1000;
    var email = 'customer@email.com';
    var meta = { /* optional  meta data array */ };

    document.getElementById('paymentBtn').onclick = function() {
        //display checkout form
        payWithPaystack(amount, email, meta, onPaymentCompleted, onPaymentCancelled);
    };

    function onPaymentCompleted(response) {
        alert('payment completed!');
        console.log(resposne);
    }

    function onPaymentCancelled() {
        alert('payment cancelled!');
    }
```

### Paystack Emebeded Example

[](#paystack-emebeded-example)

Include the paystack embeded blade directive inside of your html container

```

        @paystackEmbeded(1000, 'onPaymentCompleted', 'customer@email.com')

```

Add your javascript callback function

```

    function onPaymentCompleted(response) {
        alert('payment completed!');
        console.log(resposne);
    }
```

Paystack Fluent APIs
--------------------

[](#paystack-fluent-apis)

This package makes use of [bosunski/lpaystack](https://github.com/bosunski/lpaystack) package. So you can use all [paystack fluent APIs](https://paystack-client.herokuapp.com/#/api/supported) provided in the package.

### Usage

[](#usage-1)

```
    use Stephenjude\PaystackLite\Facades\PaystackLite;

    /**
     * This gets all your transactions
     */
    PaystackLite::api()->transactions()->list();

    /**
     * This verifies a transaction with transaction reference passed as parameter
     */
    PaystackLite::api()->transactions()->verify($ref);

    /**
     * This  gets all your paystack customers.
     */
    PaystackLite::api()->customers()->list();

    /**
     * This  gets all the plans that you have registered on Paystack
     */
    PaystackLite::api()->plans()->list();
```

See the supported Paystack APIs [here](https://paystack-client.herokuapp.com/#/api/supported).

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~116 days

Recently: every ~206 days

Total

9

Last Release

1546d ago

Major Versions

1.1.1 → 2.02019-11-19

2.1.1 → 3.0.02020-09-17

3.0.0 → 4.0.02022-02-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb8b712638a0d72afbc4e21574989fdfc33717a69ea3070e92104183db8068f9?d=identicon)[stephenjude](/maintainers/stephenjude)

---

Top Contributors

[![stephenjude](https://avatars.githubusercontent.com/u/31182887?v=4)](https://github.com/stephenjude "stephenjude (65 commits)")

---

Tags

checkoutcheckout-formlaravelpaymentpayment-integrationpaystackpaystack-litestephenjudepaystackpaystack-lite

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stephenjude-paystack-lite/health.svg)

```
[![Health](https://phpackages.com/badges/stephenjude-paystack-lite/health.svg)](https://phpackages.com/packages/stephenjude-paystack-lite)
```

###  Alternatives

[unicodeveloper/laravel-paystack

A Laravel Package for Paystack

650975.6k11](/packages/unicodeveloper-laravel-paystack)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
