PHPackages                             flame/paypal-component - 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. flame/paypal-component

ActiveLibrary

flame/paypal-component
======================

PayPal basic API written in Nette

1631PHP

Since Apr 6Pushed 13y ago2 watchersCompare

[ Source](https://github.com/flame-org/PayPal-Component)[ Packagist](https://packagist.org/packages/flame/paypal-component)[ RSS](/packages/flame-paypal-component/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PayPal Component
================

[](#paypal-component)

\##Usage

\###Config

```
parameters:
	paypal:
		api:
			username = 'seberm_1332081338_biz_api1.gmail.com'
			password = '1332081363'
			signature = 'AWiH1IO0zFZrEQbbn0JwDZHbWukIAebmYjpOylRCqBGGgztea2bku.N4'
		sandbox = true

factories:
	paypalOrderButton:
		implement: Flame\Components\PayPal\Buttons\IOrderFactory
		setup:
			- setCredentials(%paypal.api%)
			- setSandBox(%paypal.sandbox%)

			# This option cause that you're not redirected back on your page for payment confirmation but you confirm payment directly on PayPal page
			#- setRedirectToConfirm(false)

```

\###Presenter

```
/**
 * @var \Flame\Components\PayPal\Buttons\IOrderFactory $orderFactory
 */
private $orderFactory;

/**
 * @var \Flame\Components\PayPal\Buttons\Order
 */
private $orderButton;

/**
 * @param \Flame\Components\PayPal\Buttons\IOrderFactory $orderFactory
 */
public function injectOrderFactory(\Flame\Components\PayPal\Buttons\IOrderFactory $orderFactory)
{
	$this->orderFactory = $orderFactory;
}

public function startup()
{
	parent::startup();

	$this->orderButton = $this->orderFactory->create();
	$this->orderButton->setSessionSection($this->session->getSection('paypal'));
	$this->orderButton->onSuccessPayment[] = \Nette\Callback::create($this, 'processPayment');
}

/**
 * @return Flame\Components\PayPal\Buttons\Order
 */
protected function createComponentPaypalButton()
{

	$control = $this->orderButton;
	$control->setCurrencyCode(\Flame\PayPal\API\API::CURRENCY_EURO);
	$control->onConfirmation[] = \Nette\Callback::create($this, 'confirmOrder');
	$control->onError[] = \Nette\Callback::create($this, 'errorOccurred');

	//$tourModel is instance of PRODUCT
	$control->addItemToCart(
		$tourModel['name'], \Nette\Utils\Strings::substring($tourModel['desc'], 0, 25), $tourModel['price']
	);

	return $control;
}

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/25aa07e004e9743a4332fbcfd17628e92f82c6457916442530850183cf7c0bf3?d=identicon)[jsifalda](/maintainers/jsifalda)

---

Top Contributors

[![seberm](https://avatars.githubusercontent.com/u/212597?v=4)](https://github.com/seberm "seberm (33 commits)")[![jsifalda](https://avatars.githubusercontent.com/u/1549390?v=4)](https://github.com/jsifalda "jsifalda (26 commits)")[![martinknor](https://avatars.githubusercontent.com/u/2004222?v=4)](https://github.com/martinknor "martinknor (6 commits)")[![fprochazka](https://avatars.githubusercontent.com/u/158625?v=4)](https://github.com/fprochazka "fprochazka (1 commits)")

### Embed Badge

![Health badge](/badges/flame-paypal-component/health.svg)

```
[![Health](https://phpackages.com/badges/flame-paypal-component/health.svg)](https://phpackages.com/packages/flame-paypal-component)
```

PHPackages © 2026

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