PHPackages                             i-val/interpay - 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. i-val/interpay

ActiveLibrary[Payment Processing](/categories/payments)

i-val/interpay
==============

Online paymenyt integration for the Laravel framework

1.1.8(2y ago)224MITPHP

Since Feb 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/i-Val/interpay)[ Packagist](https://packagist.org/packages/i-val/interpay)[ RSS](/packages/i-val-interpay/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (14)Used By (0)

Interpay
========

[](#interpay)

Laravel payment integrtation.

Description
-----------

[](#description)

A payment integration package for laravel. It currently has support for Paystack

Getting Started
---------------

[](#getting-started)

### 1. Installation

[](#1-installation)

```
composer require i-val/interpay

```

### 2. Publishing assets

[](#2-publishing-assets)

- How to run the program
- Step-by-step bullets

```
php artisan vendor:publish --tag config

```

### 3. Environment Variables

[](#3-environment-variables)

create the following variables in your .env file...

```
PAYSTACK_SECRET_KEY = key goes her
PAYSTACK_PUBLIC_KEY = key goes her

```

Accept Payment
--------------

[](#accept-payment)

First, you need to import the "Paystack" class

```
use IVal\Interpay\Paystack\Paystack;
```

To collect payment to your paystact wallet...

```
    $paystack = new Paystack;
    $paystack->accepPayment($email, $amount);
```

To verify payment...

```
    $paystack = new Paystack;
    $paystack->accepPayment($reference);
```

.$reference above is the unique transaction reference returned after a successful payment

For refunds, pass in the transaction id generated during payment, alongside the amount

```
    $paystack = new Paystack;
    $paystack->refund($transaction_id, $amount);
```

Transfers
---------

[](#transfers)

### Transfer recipients

[](#transfer-recipients)

To create a transfer recipient, you need to pass in an associative array as follows

```
    $paystack = new Paystack;

    $data = [
        "type" => "nuban"
        "name" => "recipient_name"
        "account_number" => "recipient_account_number"
        "bank_code" => "recipient bank's 3 digit code"
        "currency" => "NGN"
    ]

    $paystack->createRecipient($data);
```

### Initiate TransferS

[](#initiate-transfers)

You'll need a unique, generated transfer reference and the recipient code returned from the createRecipient() method.

```
    $paystack = new Paystack;

    $data = [
        "amount" => "amount"
        "recipient_code" => "recipient_code"
        "reference" => "reference"
        "reason" => "lorem ipsum"
    ];

    $paystack->initiateTransfer($data);
```

### Initiate Bulk TransferS

[](#initiate-bulk-transfers)

You'll need to pass in the recipient details above, but this time it will be a multidimensional array

```
    $paystack = new Paystack;

    $data =[
        [
        "amount" => "amount"
        "recipient_code" => "recipient_code"
        "reference" => "reference"
        "reason" => "lorem ipsum"
    ],
        [
        "amount" => "amount"
        "recipient_code" => "recipient_code"
        "reference" => "reference"
        "reason" => "lorem ipsum"
    ],
        [
        "amount" => "amount"
        "recipient_code" => "recipient_code"
        "reference" => "reference"
        "reason" => "lorem ipsum"
    ],
        [
        "amount" => "amount"
        "recipient_code" => "recipient_code"
        "reference" => "reference"
        "reason" => "lorem ipsum"
    ],
    ];

    $paystack->initiateBulkTransfer($data);
```

### Fetch Transfer

[](#fetch-transfer)

To fetch a transfer deatail, pass in the transfer id or code

```
    $paystack = new Paystack;
    $paystack->fetchTransfer($code);
```

### Verify Transfer

[](#verify-transfer)

To verify a transfer deatail, pass in the transfer $reference

```
    $paystack = new Paystack;
    $paystack->verufyTransfer($transaction_id, $amount);
```

### OTP enabled Transactions

[](#otp-enabled-transactions)

For otp enebled transactions, you'll need to call the finalize tranfer method which accepts the $transfer\_code and $otp as arguments.

```
    $paystack = new Paystack;
    $paystack->finalizeTransfer($transfer_code, $otp);
```

### Check Balance

[](#check-balance)

```
   $paystack = new Paystack;
   $paystack->checkBallance();
```

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover any security vulnerabilities, please reach out to Valentine Iwuchukwu via

License
-------

[](#license)

This project is an open-source software licensed under the MIT license

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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 ~2 days

Total

13

Last Release

843d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a97b5a308b77f19d4e4eab4c378bb6d0637b1a3f39f1200cabbc3c027000d13?d=identicon)[i-Val](/maintainers/i-Val)

---

Top Contributors

[![i-Val](https://avatars.githubusercontent.com/u/69054588?v=4)](https://github.com/i-Val "i-Val (27 commits)")

### Embed Badge

![Health badge](/badges/i-val-interpay/health.svg)

```
[![Health](https://phpackages.com/badges/i-val-interpay/health.svg)](https://phpackages.com/packages/i-val-interpay)
```

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)

PHPackages © 2026

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