payum / payum-bundle
One million downloads of Payum already! Payum offers everything you need to work with payments. Check more visiting site.
Installs: 7 892 370
Dependents: 45
Suggesters: 1
Security: 0
Stars: 569
Watchers: 22
Forks: 142
Open Issues: 32
Type:symfony-bundle
Requires
- php: ^7.4 || ^8.0
- payum/core: ^1.7.2
- symfony/dependency-injection: ^4.4 || ^5.4 || ^6.4 || ^7.0
- symfony/form: ^4.4.20 || ^5.4 || ^6.0 || ^7.0
- symfony/framework-bundle: ^4.4 || ^5.4 || ^6.0 || ^7.0
- symfony/polyfill-php80: ^1.26
- symfony/security-csrf: ^4.4 || ^5.4 || ^6.0 || ^7.0
- symfony/validator: ^4.4 || ^5.4 || ^6.0 || ^7.0
Requires (Dev)
- defuse/php-encryption: ^2
- doctrine/orm: ^2.8 || ^3.0
- omnipay/common: ^3@dev
- omnipay/dummy: ^3@alpha
- omnipay/paypal: ^3@dev
- payum/offline: ^1.7
- payum/omnipay-v3-bridge: dev-master
- payum/paypal-express-checkout-nvp: ^1.7
- payum/stripe: ^1.7
- php-http/guzzle7-adapter: ^1.0
- phpunit/phpunit: ^9.5
- psr/log: ^1 || ^2 || ^3
- stripe/stripe-php: ~7.0
- symfony/browser-kit: ^4.4 || ^5.4 || ^6.0 || ^7.0
- symfony/expression-language: ^4.4 || ^5.4 || ^6.0 || ^7.0
- symfony/phpunit-bridge: ^4.4 || ^5.4 || ^6.0 || ^7.0
- symfony/templating: ^4.4 || ^5.4 || ^6.0 || ^7.0
- symfony/twig-bundle: ^4.4 || ^5.4 || ^6.0 || ^7.0
- symfony/web-profiler-bundle: ^4.4 || ^5.4 || ^6.0 || ^7.0
- symfony/yaml: ^4.4 || ^5.4 || ^6.0 || ^7.0
- twig/twig: ^2.0 || ^3.0
Suggests
- sonata-project/admin-bundle: ^3 If you want to configure payments in the backend.
- 2.6.0
- dev-master / 2.5.x-dev
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.x-dev
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.1
- 2.0.0
- 1.x-dev
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.0.x-dev
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 1.0.0-BETA2
- 1.0.0-BETA1
- 0.15.x-dev
- 0.15.0
- 0.14.x-dev
- 0.14.4
- 0.14.3
- 0.14.2
- 0.14.1
- 0.14.0
- 0.13.x-dev
- 0.13.0
- 0.12.x-dev
- 0.12.4
- 0.12.3
- 0.12.2
- 0.12.1
- 0.12.0
- 0.11.x-dev
- 0.11.0
- 0.10.x-dev
- 0.10.1
- 0.10.0
- 0.9.x-dev
- 0.9.1
- 0.9.0
- 0.8.x-dev
- 0.8.5
- 0.8.4
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8.0
- 0.7.x-dev
- 0.7.3
- 0.7.1
- 0.7.0
- 0.6.x-dev
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.x-dev
- 0.5.7
- 0.5.6
- 0.5.5
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.x-dev
- 0.4.1
- 0.4.0
- 0.3.0
- 0.2.x-dev
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.x-dev
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-feature/support-symfony6
This package is auto-updated.
Last update: 2024-11-09 11:57:21 UTC
README
Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:
PayumBundle
The bundle integrate payum into symfony framework. It already supports +35 gateways. Provide nice configuration layer, secured capture controller, storages integration and lots of more features.
Sylius, an open source headless eCommerce platform, base its payment solutions on top of the bundle.
Resources
Examples
Configure:
payum: storages: Payum\Core\Model\Payment: filesystem: storage_dir: '%kernel.root_dir%/Resources/payments' id_property: number security: token_storage: Payum\Core\Model\Token: filesystem: storage_dir: '%kernel.root_dir%/Resources/gateways' id_property: hash gateways: offline: factory: offline
note if you're using Symfony 4+ then create config/packages/payum.yaml
file with contents described above.
Purchase
<?php use Payum\Core\Model\Payment; use Payum\Core\Reply\HttpRedirect; use Payum\Core\Reply\HttpResponse; use Payum\Core\Request\Capture; $payment = new Payment; $payment->setNumber(uniqid()); $payment->setCurrencyCode('EUR'); $payment->setTotalAmount(123); // 1.23 EUR $payment->setDescription('A description'); $payment->setClientId('anId'); $payment->setClientEmail('foo@example.com'); $gateway = $this->get('payum')->getGateway('offline'); $gateway->execute(new Capture($payment));
Get status
<?php use Payum\Core\Request\GetHumanStatus; $gateway->execute($status = new GetHumanStatus($payment)); echo $status->getValue();
Other operations.
<?php use Payum\Core\Request\Authorize; use Payum\Core\Request\Cancel; use Payum\Core\Request\Refund; $gateway->execute(new Authorize($payment)); $gateway->execute(new Refund($payment)); $gateway->execute(new Cancel($payment));
Contributing
PayumBundle is an open source, community-driven project. Pull requests are very welcome.
Like it? Spread the word!
Star PayumBundle on GitHub or packagist.
License
The bundle is released under the MIT License.