darvinstudio/darvin-payment-bundle
Composer 安装命令:
composer require darvinstudio/darvin-payment-bundle
包简介
This Omnipay-based bundle provides basic payment logic for Symfony applications.
README 文档
README
This Omnipay-based bundle provides basic payment logic for Symfony applications.
Features:
- creating payment
- approving payment before purchase
- standard purchase and purchase with pre-authorise
- refund or canceling payment
- the sending notify emails of every changed payment state
- logging every actions in log and Event entity
- provides the interface for the adding receipt to payment
Payment states
To manage payment state used Symfony Workflow Component.
Scheme of payment state changes:
Installation
composer require darvinstudio/darvin-payment-bundle
How to create Payment
/** @var $paymentFactory \Darvin\PaymentBundle\Payment\Factory\PaymentFactoryInterface */ $payment = $paymentFactory->createPayment( new PaidOrder( (string)$order->getId(), get_class($order), (string)$order->getNumber() ), $order->getPrice(), new Client( (string)$user->getId(), get_class($user), $user->getEmail() ), 'USD' );
How to get payment's link in twig
{{ payment_purchase_urls(payment) }}
How to get all available payment's links for order
{{ payment_purchase_widget(order) }}
统计信息
- 总下载量: 563
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-09
