Payum/PayumBundle
소개
Payum은 결제를 처리하는 데 필요한 모든 것을 제공합니다. 가장 단순한 사용 사례부터 매우 고급 사례까지 지원합니다.
비즈니스 및 금융측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSupporting 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:
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 put the configuration above in config/packages/payum.yaml.
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('[email protected]');
$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.
관련 프로젝트 살펴보기
불러오는 중…

