PayumBundle
Payum offers everything you need to work with payments. From simplest use cases to very advanced ones.
Install / Use
/learn @Payum/PayumBundleREADME
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.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。


