Payum 提供了您在处理支付方面所需的一切。从最简单的用例到非常先进的用例。
Supporting Payum
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:
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.
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: offlinenote if you're using Symfony 4+ then create config/packages/payum.yaml file with contents described above.
setNumber(uniqid());
$payment->setCurrencyCode('EUR');
$payment->setTotalAmount(123); // 1.23 EUR
$payment->setDescription('A description');
$payment->setClientId('anId');
$payment->setClientEmail('[email protected]');
$gateway = $this->get('payum')->getGateway('offline');
$gateway->execute(new Capture($payment));execute($status = new GetHumanStatus($payment));
echo $status->getValue();execute(new Authorize($payment));
$gateway->execute(new Refund($payment));
$gateway->execute(new Cancel($payment));PayumBundle is an open source, community-driven project. Pull requests are very welcome.
Star PayumBundle on GitHub or packagist.
The bundle is released under the MIT License.
暂无开放 Issues,或尚未同步最近议题。