PHPackages                             geniv/nette-prtpe - 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. geniv/nette-prtpe

ActiveLibrary[Payment Processing](/categories/payments)

geniv/nette-prtpe
=================

PRTPE extension for Nette Framework

v1.0.8(8y ago)1291MITPHPPHP &gt;=5.6.0

Since Jul 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/geniv/nette-prtpe)[ Packagist](https://packagist.org/packages/geniv/nette-prtpe)[ RSS](/packages/geniv-nette-prtpe/feed)WikiDiscussions master Synced 3d ago

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

Prtpe
=====

[](#prtpe)

PRTPE payment gateway

API:

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

[](#installation)

```
$ composer require geniv/nette-prtpe
```

or

```
"geniv/nette-prtpe": ">=1.0.0"
```

require:

```
"php": ">=5.6.0",
"curl/curl": "^1.6"
```

Include in application
----------------------

[](#include-in-application)

neon configure:

```
# prtpe
prtpe:
    entityId: 'xxx'
    password: 'yyy'
    userId: 'zzz'
```

neon configure extension:

```
extensions:
    prtpe: Prtpe\Bridges\Nette\Extension
```

presenters:

```
use Prtpe\Prtpe;
/** @var Prtpe @inject */
public $prtpe;

// init settings prtple payment gate
$prtpe->setTest(true|false) : void

// is test mode?
$prtpe->isTestMode() : bool
```

**API Reference and test data: **

COPY&amp;PAY &amp;&amp; Server-to-Server

```
// set part custom descriptor
$prtpe->setDescriptor($text = 'vs: XXXYYY') : Prtpe

// manual enable create registration token
$prtpe->setStorePayment($state = true) : Prtpe

// add registration code for select storage payment
$prtpe->addRegistration($registrationId = '##id##') : Prtpe

// payment is success or not
$pay->isSuccess() : bool

// result prtpe status code (https://docs.prtpe.com/reference/resultCodes)
$pay->getResultCode(): string

// checkout id or payment id
$pay->getId() : strign

// registration id registred payment
$pay->getRegistrationId() : string

// array from payment gateway
$pay->getResult() : array

// value from array payment gateway
$pay->getResult('amount') : string
```

COPY&amp;PAY
------------

[](#copypay)

```
// send checkout
$checkout = $prtpe->checkout($price, 'VISA', $currency) : Response

// get inline script
$prtpe->getPaymentWidgetsScript($checkoutId) : string

// get url form
$prtpe->getPaymentWidgetsForm($shopperResultUrl = $this->link('success'), $brands = ['VISA', 'MASTER']) : string

// get status checkout
$status = $prtpe->getStatusCheckout($resourcePath) : Response
```

Customization:

Advanced Options:

Server-to-Server
----------------

[](#server-to-server)

```
// new credit card
$card = new Card($number, $holder, $expiryMonth, $expiryYear, $cvv) : Card

// send payment
$pay = $prtpe->payment($card, $price, 'VISA', $currency) : Response

// get status payment
$pay = $prtpe->getStatusPayment($checkoutId = '##id##') : Response

// store card
$pay = $prtpe->storePaymentData($card) : Response
```

Recurent payment (COPY&amp;PAY + Server-to-Server)
--------------------------------------------------

[](#recurent-payment-copypay--server-to-server)

```
// recurent payment, send payment
$pay = $prtpe->sendRepeatedPayment($idRegistration, $price, 'VISA', $currency) : Response

// recurent payment, delete payment
$pay = $prtpe->deleteStorePaymentData($idRegistration) : Response
```

usage:

```
// checkout

try {
    $prtpe = $this->prtpe->setDescriptor('vs:123'));

    $checkout = $prtpe->checkout(10);
    if ($checkout->isSuccess()) {
        $paymentWidgetsScript = $prtpe->getPaymentWidgetsScript($checkout->getId());
        $paymentWidgetsForm = $prtpe->getPaymentWidgetsForm($this->link('//success'));
    }
} catch (Exception $e) {
    $this->flashMessage($e->getMessage(), 'danger');
}
```

```
try {
    $statusCheckout = $this->prtpe->getStatusCheckout($resourcePath);
    if ($statusCheckout->isSuccess()) {
        // save $statusCheckout
    }
} catch (Exception $e) {
    $this->flashMessage($e->getMessage(), 'danger');
}
```

```
$pay = $this->prtpe
    ->setDescriptor('vs:123')
    ->sendRepeatedPayment($idRegistration, 10);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~9 days

Total

9

Last Release

3002d ago

### Community

Maintainers

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

---

Top Contributors

[![geniv](https://avatars.githubusercontent.com/u/563659?v=4)](https://github.com/geniv "geniv (26 commits)")

---

Tags

nettepaymentgenivprtpe

### Embed Badge

![Health badge](/badges/geniv-nette-prtpe/health.svg)

```
[![Health](https://phpackages.com/badges/geniv-nette-prtpe/health.svg)](https://phpackages.com/packages/geniv-nette-prtpe)
```

###  Alternatives

[alexanderpoellmann/paymentfont

PaymentFont - A sleek webfont for your favourite payment operators and methods

1.6k1.1k](/packages/alexanderpoellmann-paymentfont)[metisfw/paypal

PayPal SDK integration for Nette Framework

109.2k](/packages/metisfw-paypal)[lucassmacedo/omnipay-mercadopago

MercadoPago gateway for OmniPay

154.6k](/packages/lucassmacedo-omnipay-mercadopago)

PHPackages © 2026

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