PHPackages                             jrodella/payment-ws-api - 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. [API Development](/categories/api)
4. /
5. jrodella/payment-ws-api

ActiveLibrary[API Development](/categories/api)

jrodella/payment-ws-api
=======================

SOAP WS API to call Lyra payment services in PHP based websites.

v1.0.1(8y ago)08GPL-3.0+PHPPHP &gt;=5.3.0

Since Mar 6Pushed 8y agoCompare

[ Source](https://github.com/jrodella/payment-ws-api)[ Packagist](https://packagist.org/packages/jrodella/payment-ws-api)[ RSS](/packages/jrodella-payment-ws-api/feed)WikiDiscussions develop Synced today

READMEChangelog (2)DependenciesVersions (4)Used By (0)

Lyra payment WS API
===================

[](#lyra-payment-ws-api)

Lyra payment WS API is an open source PHP API that allows making SOAP WS calls to secured payment services developped by [Lyra Network](https://www.lyra-network.com/) inside e-commerce websites.

Requirements
------------

[](#requirements)

PHP 5.3.0 and later.

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

[](#installation)

### Composer

[](#composer)

You can install the API via [Composer](http://getcomposer.org/). Run the following command:

```
composer require lyranetwork/payment-ws-api
```

To use the API, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):

```
require_once('vendor/autoload.php');
```

### Manual Installation

[](#manual-installation)

If you do not wish to use Composer, you can download the [latest release](https://github.com/payzen/payment-ws-api/releases). Then, to use the API, include the `init.php` file.

```
require_once('/path/to/payment-ws-api/init.php');
```

Usage
-----

[](#usage)

```
try {
    $ctxMode = 'TEST';
    $keyTest = '1111111111111111';
    $keyProd = '2222222222222222';
    $shopId = '12345678';

    // proxy options if any
    $options = array(
        'proxy_host' => 'host',
        'proxy_port' => '3128',
        'proxy_login' => 'login',
        'proxy_password' => 'password'
    );

    $wsApi = new \Lyranetwork\WsApi($options, $url);
    $wsApi->init($shopId, $ctxMode, $keyTest, $keyProd);

    // example of getPaymentDetails call
    $queryRequest = new \Lyranetwork\QueryRequest();
    $queryRequest->setUuid($uuid); // a known transaction UUID

    $getPaymentDetails = new \Lyranetwork\GetPaymentDetails($queryRequest);
    $getPaymentDetails->setQueryRequest($queryRequest);

    $requestId = $wsApi->setHeaders();

    $getPaymentDetailsResponse = $wsApi->getPaymentDetails($getPaymentDetails);

    $wsApi->checkAuthenticity();
    $wsApi->checkResult(
        $getPaymentDetailsResponse->getGetPaymentDetailsResult()->getCommonResponse(),
        array(
            'INITIAL', 'WAITING_AUTHORISATION', 'WAITING_AUTHORISATION_TO_VALIDATE',
            'UNDER_VERIFICATION', 'AUTHORISED', 'AUTHORISED_TO_VALIDATE', 'CAPTURED', 'CAPTURE_FAILED'
        ) // pending or accepted payment
    );

} catch(\SoapFault $f) {
    log("[$requestId] SoapFault with code {$f->faultcode}: {$f->faultstring}.", Zend_Log::WARN);

    // friendly message here
} catch(\UnexpectedValueException $e) {
    log("[$requestId] getPaymentDetails error with code {$e->getCode()}: {$e->getMessage()}.", Zend_Log::ERR);

    if ($e->getCode() === -1) {
        // manage authentication error here
    } elseif ($e->getCode() === 1) {
        // merchant does not subscribe to WS option
    } else {
        // manage other unexpected response here
    }
} catch (Exception $e) {
    log("[$requestId] Exception with code {$e->getCode()}: {$e->getMessage()}", Zend_Log::ERR);

    // friendly message here
}
```

License
-------

[](#license)

Each Lyra payment WS API source file included in this distribution is licensed under GNU GENERAL PUBLIC LICENSE (GPL 3.0).

Please see LICENSE.txt for the full text of the GPL 3.0 license. It is also available through the world-wide-web at this URL: .

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~0 days

Total

2

Last Release

3037d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22198227?v=4)[Jonathan R. Delgado](/maintainers/jrodella)[@jrodella](https://github.com/jrodella)

---

Top Contributors

[![nabil-semaoune-lyra](https://avatars.githubusercontent.com/u/244469839?v=4)](https://github.com/nabil-semaoune-lyra "nabil-semaoune-lyra (6 commits)")[![jrodella](https://avatars.githubusercontent.com/u/22198227?v=4)](https://github.com/jrodella "jrodella (1 commits)")[![nabil509](https://avatars.githubusercontent.com/u/75646?v=4)](https://github.com/nabil509 "nabil509 (1 commits)")[![philixxx](https://avatars.githubusercontent.com/u/2597768?v=4)](https://github.com/philixxx "philixxx (1 commits)")

---

Tags

phpwsapisdksoappaymente-commercewsdllyra

### Embed Badge

![Health badge](/badges/jrodella-payment-ws-api/health.svg)

```
[![Health](https://phpackages.com/badges/jrodella-payment-ws-api/health.svg)](https://phpackages.com/packages/jrodella-payment-ws-api)
```

###  Alternatives

[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.5M11](/packages/checkout-checkout-sdk-php)[postfinancecheckout/sdk

PostFinance Checkout SDK for PHP

22233.6k20](/packages/postfinancecheckout-sdk)[wallee/sdk

wallee SDK for PHP

12377.9k17](/packages/wallee-sdk)

PHPackages © 2026

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