PHPackages                             wowmarketing/webpay-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. [API Development](/categories/api)
4. /
5. wowmarketing/webpay-php

ActiveLibrary[API Development](/categories/api)

wowmarketing/webpay-php
=======================

GP Webpay API Wrapper

1.1.1(10y ago)014MITPHP

Since Aug 13Pushed 6y agoCompare

[ Source](https://github.com/wowmarketing/gp-webpay-php-sdk)[ Packagist](https://packagist.org/packages/wowmarketing/webpay-php)[ Docs](https://github.com/newPOPE/webpay-php)[ RSS](/packages/wowmarketing-webpay-php/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

GP Webpay PHP SDK
=================

[](#gp-webpay-php-sdk)

[![Build Status](https://camo.githubusercontent.com/f2b968fe05b325a223e1e2a105867732672f83961305747ce8b6cba463159883/68747470733a2f2f7472617669732d63692e6f72672f6e6577504f50452f67702d7765627061792d7068702d73646b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/newPOPE/gp-webpay-php-sdk)

Full featured PHP SDK for [GP Webpay payments](http://www.gpwebpay.cz).

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

[](#installation)

The best way to install GP Webpay PHP SDK is using [Composer](http://getcomposer.org/):

```
$ composer require wowmarketing/webpay-php dev-master
```

Setup
-----

[](#setup)

```
$signer = new \WOWMarketing\Webpay\Signer(
  $privateKeyFilepath,    // Path of private key.
  $privateKeyPassword,    // Password for private key.
  $publicKeyFilepath      // Path of public key.
);

$api = new \WOWMarketing\Webpay\Api(
  $merchantNumber,    // Merchant number.
  $webpayUrl,         // URL of webpay.
  $signer             // instance of \WOWMarketing\Webpay\Signer.
);
```

Create payment
--------------

[](#create-payment)

### Create payment url

[](#create-payment-url)

```
use \WOWMarketing\Webpay\PaymentRequest;

$request = new PaymentRequest(...);

$url = $api->createPaymentRequestUrl($request); // $api instance of \WOWMarketing\Webpay\Api

// use $url as you want. In most cases for redirecting to GP Webpay.
```

### Verify payment response

[](#verify-payment-response)

```
use \WOWMarketing\Webpay\PaymentResponse;
use \WOWMarketing\Webpay\Exception;

$response = new PaymentResponse(...); // fill response with response parameters (from request).

try {
  $api->verifyPaymentResponse($response);
}
catch (PaymentResponseException $e) {
  // PaymentResponseException has $prCode, $srCode for properties for logging GP Webpay response error codes.
}
catch (Exception $e) {
  // Digest is not correct.
}
```

\##Development

GP Webpay PHP SDK is developed in [Docker](https://docker.com) container via `docker-compose` command.

Example:

```
$ docker-compose run --rm default install  # install deps via composer
$ docker-compose run --rm default  # runs tests in container
```

Attach to container:

```
$ docker-compose run --rm default bash # runs bash in container and attach tty
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 67.2% 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 ~447 days

Total

3

Last Release

3763d ago

### Community

Maintainers

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

---

Top Contributors

[![newPOPE](https://avatars.githubusercontent.com/u/484382?v=4)](https://github.com/newPOPE "newPOPE (45 commits)")[![MartinVondrak](https://avatars.githubusercontent.com/u/22094256?v=4)](https://github.com/MartinVondrak "MartinVondrak (9 commits)")[![sebik](https://avatars.githubusercontent.com/u/873189?v=4)](https://github.com/sebik "sebik (4 commits)")[![netskycz](https://avatars.githubusercontent.com/u/27358718?v=4)](https://github.com/netskycz "netskycz (3 commits)")[![Vitexus](https://avatars.githubusercontent.com/u/2621130?v=4)](https://github.com/Vitexus "Vitexus (3 commits)")[![sajfi](https://avatars.githubusercontent.com/u/597035?v=4)](https://github.com/sajfi "sajfi (1 commits)")[![tejkys](https://avatars.githubusercontent.com/u/21172132?v=4)](https://github.com/tejkys "tejkys (1 commits)")[![wernerdweight](https://avatars.githubusercontent.com/u/2445436?v=4)](https://github.com/wernerdweight "wernerdweight (1 commits)")

---

Tags

phpwebpay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wowmarketing-webpay-php/health.svg)

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

###  Alternatives

[adamstipak/webpay-php

GP Webpay API Wrapper

45167.3k](/packages/adamstipak-webpay-php)

PHPackages © 2026

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