PHPackages                             kaoz70/alignet-payme-gateway - 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. kaoz70/alignet-payme-gateway

ActiveLibrary[Payment Processing](/categories/payments)

kaoz70/alignet-payme-gateway
============================

Alignet PayMe payment gateway classes

05PHP

Since Apr 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/kaoz70/alignet-payme-gateway)[ Packagist](https://packagist.org/packages/kaoz70/alignet-payme-gateway)[ RSS](/packages/kaoz70-alignet-payme-gateway/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

alignet-payme-gateway
=====================

[](#alignet-payme-gateway)

Alignet (PayMe) PHP classes

PayMe class methods
-------------------

[](#payme-class-methods)

- getWalletCode($id, $email, $firstNames, $lastNames)
- formatPrice($price)
- createPurchaseVerification($orderNumber, $price)
- verifyFromCallback($postData)

Usage
-----

[](#usage)

### Installation

[](#installation)

```
composer require kaoz70/alignet-payme-gateway

```

### Init

[](#init)

```
// Set the configuration class
$payMeConfig = new PayMeConfig('dev'); // or 'prod'
$payMeConfig->setWalletKey('key...');
$payMeConfig->setVpos2Key('key...');
$payMeConfig->setCommerceId('12345');
$payMeConfig->setAcquirerId('123');
$payMeConfig->setWalletId('123');

// Init the PayMe class
$payme = new PayMe($payMeConfig);

```

### Get the users's wallet code

[](#get-the-userss-wallet-code)

```
try {
    $walletCode = $payme->getWalletCode(2458, 'example@email.com', 'Juan Jose', 'Perez Romero')
    // Store the wallet code in DB...
} catch (\SoapFault $e) {
    // Handle SOAP error
} catch () {
    // Handle generic error
}

```

### Generate the purchase verification

[](#generate-the-purchase-verification)

```
$price = $payme->formatPrice($total); // All prices sent to PayMe should be formatted with this method
$orderNumber = 12364 // Generate a unique order number every time
$purchaseVerification = $payme->createPurchaseVerification($orderNumber, $price)

```

### Alignet callback URL

[](#alignet-callback-url)

```
try {
    // Set the configuration with the same data as before
    $payMeConfig = new PayMeConfig('dev'); // or 'prod'
    $payMeConfig->setWalletKey('key...');
    $payMeConfig->setVpos2Key('key...');
    $payMeConfig->setCommerceId('12345');
    $payMeConfig->setAcquirerId('123');
    $payMeConfig->setWalletId('123');

    // Init the PayMe class
    $payme = new PayMe($payMeConfig);

    $data = $_POST;
    $payme->verifyFromCallback($data);

    // Success
} catch (PaymentStatusException $exception) {
    // Handle verification exception
} catch (\Exception $exception) {
    // Handle generic error
}

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b569355f1eda37bc514d4b71fa7ef17c487a7dad678e752822b561962d5b000?d=identicon)[kaoz701](/maintainers/kaoz701)

### Embed Badge

![Health badge](/badges/kaoz70-alignet-payme-gateway/health.svg)

```
[![Health](https://phpackages.com/badges/kaoz70-alignet-payme-gateway/health.svg)](https://phpackages.com/packages/kaoz70-alignet-payme-gateway)
```

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18570.2k1](/packages/omnipay-coinbase)

PHPackages © 2026

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