PHPackages                             hostbox/nette-paypal-payment-buttons - 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. hostbox/nette-paypal-payment-buttons

ActiveLibrary[Payment Processing](/categories/payments)

hostbox/nette-paypal-payment-buttons
====================================

PayPal payment buttons component for Nette Framework

v1.0.0(12y ago)374MITPHP

Since Apr 15Pushed 11y ago1 watchersCompare

[ Source](https://github.com/HostBox/nette-paypal-payment-buttons)[ Packagist](https://packagist.org/packages/hostbox/nette-paypal-payment-buttons)[ RSS](/packages/hostbox-nette-paypal-payment-buttons/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Paypal Payment buttons for Nette Framework [![Build Status](https://camo.githubusercontent.com/cef0afc568150f0ec4ab750c66f4326a2fed30acac089352e4234fa881d1efc0/68747470733a2f2f7472617669732d63692e6f72672f486f7374426f782f6e657474652d70617970616c2d7061796d656e742d627574746f6e732e706e67)](https://travis-ci.org/HostBox/nette-paypal-payment-buttons)
==========================================================================================================================================================================================================================================================================================================================================================

[](#paypal-payment-buttons-for-nette-framework-)

Support for Buy Now, Add to Cart, Donate, QR Codes, and Subscribe buttons
-------------------------------------------------------------------------

[](#support-for-buy-now-add-to-cart-donate-qr-codes-and-subscribe-buttons)

Package Installation
--------------------

[](#package-installation)

The best way to install Social Plugins is using [Composer](http://getcomposer.org/):

```
$ composer require hostbox/nette-paypal-payment-buttons
```

[Packagist - Versions](https://packagist.org/packages/hostbox/nette-paypal-payment-buttons)

[Nette Forum (cs) - plugin section](http://forum.nette.org/cs/16397-paypal-payment-buttons-jednoducha-komponent-pro-vytvareni-payment-tlacitek)

[Nette Addons](http://addons.nette.org/hostbox/nette-paypal-payment-buttons)

or manual edit composer.json in your project

```
"require": {
    "hostbox/nette-paypal-payment-buttons": "v1.0.0"
}
```

Component Installation
----------------------

[](#component-installation)

**config.neon**

```
services:
    # Config
    - HostBox\Components\PayPal\PaymentButtons\Config('PaypalMerchantId')
    # Factory
    - HostBox\Components\PayPal\PaymentButtons\ButtonFactory

```

**Presenter**

```
use HostBox\Components\PayPal\PaymentButtons\ButtonFactory;
use HostBox\Components\PayPal\PaymentButtons\Subscribe;
use Nette\Application\UI\Presenter;

class PaypalPaymentPresenter extends Presenter {

    /** @var ButtonFactory */
    protected $buttonFactory;

    public function __construct(ButtonFactory $buttonFactory) {
        parent::__construct();
        $this->buttonFactory = $buttonFactory;
    }

    // component create by Factory
    public function createComponentBuyNow() {
        return $this->buttonFactory->createBuyNow();
    }

    // default settings by factory function parameter
    public function createComponentDonate() {
        return $this->buttonFactory->createDonate(array(
            'quantity' => 10,
            'tax' => 10.5
        ));
    }

    // by component function parameter
    public function createComponentQRCodes() {
        $component = $this->buttonFactory->createQRCodes();
        $component->assign(array(
            'quantity' => 10,
            'tax' => 10.5
        ));

        return $component;
    }

    // by component variable
    public function createComponentSubscribe() {
        $component = $this->buttonFactory->createSubscribe();
        $component->period = Subscribe::PERIOD_YEARS

        return $component;
    }

}
```

**Template**

```
{control buyNow}
{control addToCart}
{control subscribe}
{control qRCodes}

// temporary(only for this render) settings editing in Template
{control donate, quantity => 10, tax => 10.5}

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

4407d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b3c8fd523715db8fd639c63b8f6b2c51449b00def41e0debd052a52b8aa35ca?d=identicon)[HostBox](/maintainers/HostBox)

---

Top Contributors

[![pmachan](https://avatars.githubusercontent.com/u/1494579?v=4)](https://github.com/pmachan "pmachan (33 commits)")

---

Tags

nettepaymentpaypalcomponent

### Embed Badge

![Health badge](/badges/hostbox-nette-paypal-payment-buttons/health.svg)

```
[![Health](https://phpackages.com/badges/hostbox-nette-paypal-payment-buttons/health.svg)](https://phpackages.com/packages/hostbox-nette-paypal-payment-buttons)
```

###  Alternatives

[payum/payum-bundle

One million downloads of Payum already! Payum offers everything you need to work with payments. Check more visiting site.

59510.3M39](/packages/payum-payum-bundle)[jms/payment-paypal-bundle

Payment Bundle providing access to the PayPal API

124405.8k1](/packages/jms-payment-paypal-bundle)[metisfw/paypal

PayPal SDK integration for Nette Framework

109.2k](/packages/metisfw-paypal)[jonassiewertsen/statamic-butik

The Statamic Butik e-commerce solution will integrate nicely with your personal Statamic site and help to grow your online business.

443.2k](/packages/jonassiewertsen-statamic-butik)[payum/payum-yii-extension

Rich payment solutions for Yii framework. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more

1411.8k](/packages/payum-payum-yii-extension)

PHPackages © 2026

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