Developed with love by KnpLabs Hire us for your project!
218

PayumBundle

by Payum

Rich payment solutions for symfony2. Paypal, Stripe, Payex, Authorize.NET, Be2bill, Klarna, recurring paymens, instant notifications and many more

PayumBundle

Build Status
Total Downloads
Latest Stable Version

The bundle integrate payum into symfony framework.
It already supports +35 payments.
Provide nice configuration layer, secured capture controller, storages integration and lots of more features.

Sylius e-commerce platform base its payment solutions on top of the bundle.

Resources

Examples

Configure:

payum:
    storages:
        Payum\Core\Model\Order:
            filesystem:
                storage_dir: %kernel.root_dir%/Resources/payments
                id_property: number

    security:
        token_storage:
            Payum\Core\Model\Token:
                storage_dir: %kernel.root_dir%/Resources/payments
                id_property: hash

    payments:
        offline:
            offline: ~

Purchase

<?php
use Payum\Core\Model\Order;
use Payum\Core\Reply\HttpRedirect;
use Payum\Core\Reply\HttpResponse;
use Payum\Core\Request\Capture;
use Payum\Offline\PaymentFactory as OfflinePaymentFactory;

$order = new Order;
$order->setNumber(uniqid());
$order->setCurrencyCode('EUR');
$order->setTotalAmount(123); // 1.23 EUR
$order->setDescription('A description');
$order->setClientId('anId');
$order->setClientEmail('foo@example.com');

$payment = $this->get('payum')->getPayment('offline');
$payment->execute(new Capture($order));

Get status

<?php
use Payum\Core\Request\GetHumanStatus;

$payment->execute($status = new GetHumanStatus($order));

echo $status->getValue();

Other operations.

<?php
use Payum\Core\Request\Authorize;
use Payum\Core\Request\Cancel;
use Payum\Core\Request\Refund;

$payment->execute(new Authorize($order));

$payment->execute(new Refund($order));

$payment->execute(new Cancel($order));

Contributing

PayumBundle is an open source, community-driven project. Pull requests are very welcome.

Like it? Spread the world!

Star PayumBundle on github or packagist.

License

The bundle is released under the MIT License.

Copyright (C) 2013 by Forma-Pro

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
  • Merge branch '0.14'
    By makasim, 2 years ago
  • Release 0.14.2
    By makasim, 2 years ago
  • Merge pull request #246 from formapro-forks/doctrine-dbal-not-configured-fix
    By makasim, 2 years ago
  • fix tests
    By makasim, 2 years ago
  • [doctrine] do not add mapping config if dbal not configured.
    By makasim, 2 years ago
  • Merge branch '0.14'
    By makasim, 2 years ago
  • Merge pull request #243 from formapro-forks/fix-custom-factory
    By makasim, 2 years ago
  • Release 0.14.1
    By makasim, 2 years ago
  • fix test
    By makasim, 2 years ago
  • [factory] fix custom factory.
    By makasim, 2 years ago
  • master is 0.15 now.
    By makasim, 2 years ago
  • Release 0.14.0
    By makasim, 2 years ago
  • Merge pull request #240 from JulienItard/master
    By makasim, 2 years ago
  • Add french translations
    By , 2 years ago
  • Merge pull request #237 from formapro-forks/token-factory-extension
    By makasim, 2 years ago
  • [security] token factory extension.
    By makasim, 2 years ago
  • Merge pull request #235 from formapro-forks/token-factory-use-composition
    By makasim, 2 years ago
  • test fix.
    By makasim, 2 years ago
  • [security] use token facroies composition.
    By makasim, 2 years ago
  • [doc] fix
    By makasim, 2 years ago
  • [doc] update custom api usage doc.
    By makasim, 2 years ago
  • Merge pull request #232 from formapro-forks/doctrine-simplify-config
    By makasim, 2 years ago
  • [doctrine] prepend doctrine config with correct path to Payum mappings files.
    By makasim, 2 years ago
  • Merge pull request #221 from formapro-forks/admin-for-payment-config
    By makasim, 2 years ago
  • tire of php 5.3
    By makasim, 2 years ago
  • fix tests
    By makasim, 2 years ago
  • fix test
    By makasim, 2 years ago
  • add docs about container tabs and payment configuration in a backend
    By makasim, 2 years ago
  • Dynamic payments.
    By makasim, 2 years ago
  • wip
    By makasim, 2 years ago