PHPackages                             mydevcodes/ipaymer-php - 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. mydevcodes/ipaymer-php

ActiveLibrary[Payment Processing](/categories/payments)

mydevcodes/ipaymer-php
======================

The official iPaymer PHP library

1.0.2(3y ago)01.3k↓48.6%MITPHPPHP ^7.4|^8.0

Since Nov 16Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mydevcodes/ipaymer-php)[ Packagist](https://packagist.org/packages/mydevcodes/ipaymer-php)[ Docs](https://github.com/mydevcodes/ipaymer-php)[ RSS](/packages/mydevcodes-ipaymer-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (13)Used By (0)

iPaymer PHP
===========

[](#ipaymer-php)

\[!\[Latest Version on Packagist\]( ipaymer-php.svg?style=flat-square)\]( ipaymer-php) \[!\[Total Downloads\]( ipaymer-php.svg?style=flat-square)\]( ipaymer-php)

Once you complete your iPaymer account there comes a time when you need to connect it to your application. **This package is your best buddy when it comes to integrating iPaymer into your PHP Application.***If your platform is not whitelisted by iPaymer you won't be able to use this library.*

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require mydevcodes/ipaymer-php

```

Usage
-----

[](#usage)

The simplest way to call iPaymer PHP:

```
use Mydevcodes\IpaymerPhp\IpaymerPhp;
IpaymerPhp::init('Your_Secret_Key', 'production|development');

```

Methods
-------

[](#methods)

### Create a customer

[](#create-a-customer)

Creating a customer also requires a subscription and a credit card to be attached.

```
$customerData = [
    'name' => 'Jimm',
    'email' => 'jimmy@jimmy.com'
];

$ipaymer_customer_id = IpaymerPhp::init('Your_Secret_Key')->create($customerData);

```

### Redirection links

[](#redirection-links)

These helper methods will construct redirection links to iPaymer for different methods

#### New subscription / Upgrade to package

[](#new-subscription--upgrade-to-package)

```
IpaymerPhp::init('Your_Secret_Key')->checkoutLink('CUSTOMER_IPAYMER_ID', 'PLAN_CODE', 'RETURN_URL');

```

#### New card

[](#new-card)

```
IpaymerPhp::init('Your_Secret_Key')->newCardLink('CUSTOMER_IPAYMER_ID');

```

### Assign Plan

[](#assign-plan)

Assign a specific plan to a customer. This won't replace any of his previous active plans.

```
IpaymerPhp::init('Your_Secret_Key')->assign('CUSTOMER_IPAYMER_ID', 'PLAN_ID', 'QUANTITY');

```

### Switch Plan

[](#switch-plan)

Replace a specific plan with another. Often used within upgrades/downgrades.

```
IpaymerPhp::init('Your_Secret_Key')->change('CUSTOMER_IPAYMER_ID', 'FROM_PLAN_ID', 'TO_PLAN_ID');

```

### Payment Plans \[DEPRACATED\]

[](#payment-plans-depracated)

All your payment plans should be already registered in iPaymer. If a customer is defined only the plans attached to the same payment gateway will be returned.

```
IpaymerPhp::init('Your_Secret_Key')->plans($customerId);

```

### Status

[](#status)

Returns customer status on each plan separately. If a customer has 2 plans it will return the status and extra information regarding those plans.

```
IpaymerPhp::init('Your_Secret_Key')->status('CUSTOMER_IPAYMER_ID');

```

### Invoices

[](#invoices)

Returns all customer invoices in a descending order

```
IpaymerPhp::init('Your_Secret_Key')->invoices('CUSTOMER_IPAYMER_ID');

```

### Generate custom invoice

[](#generate-custom-invoice)

```
use Mydevcodes\IpaymerPhp\IpaymerPhp;
IpaymerPhp::init('Your_Secret_Key')->generateInvoice('CUSTOMER_IPAYMER_ID', 'PLAN_CODE', 'PRICE', 'QUANTITY', 'DESCRIPTION');

```

### Cancel Plan

[](#cancel-plan)

Cancels a plan in customers billing cycle

```
IpaymerPhp::init('Your_Secret_Key')->cancel('CUSTOMER_IPAYMER_ID', 'PACKAGE_CODE');

```

### Remove Card

[](#remove-card)

Removes a card from a customer

```
IpaymerPhp::init('Your_Secret_Key')->remove('CUSTOMER_IPAYMER_ID', 'IPAYMER_CARD_ID');

```

### Changelog

[](#changelog)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

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

Credits
-------

[](#credits)

- [Mustafe Hyseni](https://github.com/tafhyseni)
- [Mydev.com](https://github.com/mydevcodes)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 57.9% 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 ~22 days

Recently: every ~52 days

Total

12

Last Release

1403d ago

Major Versions

0.1-beta → 1.0.02022-02-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8b4fe4753af6a07e715566888fa67f999ee2d29f466758aa192e1982c2e3018?d=identicon)[tafa@thesocialplus.com](/maintainers/tafa@thesocialplus.com)

---

Top Contributors

[![tafhyseni](https://avatars.githubusercontent.com/u/20110604?v=4)](https://github.com/tafhyseni "tafhyseni (11 commits)")[![gazmend-sahiti](https://avatars.githubusercontent.com/u/97100580?v=4)](https://github.com/gazmend-sahiti "gazmend-sahiti (8 commits)")

---

Tags

mydevcodes ipaymer-php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mydevcodes-ipaymer-php/health.svg)

```
[![Health](https://phpackages.com/badges/mydevcodes-ipaymer-php/health.svg)](https://phpackages.com/packages/mydevcodes-ipaymer-php)
```

###  Alternatives

[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)

PHPackages © 2026

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