pixers/payum-dotpay
Composer 安装命令:
composer require pixers/payum-dotpay
包简介
dotpay api implementation for payum
README 文档
README
Integrate Payum with Dotpay API.
Get it started.
Library offers additional Payum gateway for Dotpay (www.dotpay.pl) service.
Installation
The preferred way to install the library is using composer.
Run:
php composer.phar require "pixers/payum-dotpay"
Symfony Integration
Symfony2 - how to add DotpayGateway v1.0.2 for (1.x > payum-bundle < 2.0):
<?php namespace Acme\PaymentBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; use Symfony\Component\DependencyInjection\ContainerBuilder; use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildRegistryPass; use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildGatewayFactoryPass; use Pixers\Payum\Dotpay\DependencyInjection\Factory\Gateway\DotpayGatewayFactory; class AcmePaymentBundle extends Bundle { /** * Add Dotpay Gateway to PaymentBundle * * @param ContainerBuilder $container */ public function build(ContainerBuilder $container) { /** @var $extension PayumExtension */ $extension = $container->getExtension('payum'); $extension->addGatewayFactory(new DotpayGatewayFactory()); $container->addCompilerPass(new BuildRegistryPass()); $container->addCompilerPass(new BuildGatewayFactoryPass()); } }
If we'd like to set URLC parameter (URL callback), we additionally have to turn on option "Ustawienia -> parametry URLC" in Dotpay panel. More information: http://dotpay.pl/files/dotpay_instrukcja_techniczna.pdf (page 25).
Config.yml:
payum:
gateways:
dotpay_checkout:
dotpay:
id: company_id_from_dotpay_panel
method: 'POST'|'GET' // (optional) default=GET
URLC: '//some_url', // (optional)
url: '//some_url', // (optional)
endpoint: 'https://ssl.dotpay.pl/', //(optional)
type: 0|1|2|3, // (optional) default=3
PIN: hjkert543dgt67yh, // for URLC callbacks (must be set before in dotpay panel) (optional)
ip: 195.150.9.37 // this dotpay ip calls to URLC (optional)
Symfony2 - how to add DotpayGateway v2.0 for payum-bundle >= 2.0:
services.yml
dotpay_checkout:
class: Payum\Core\Bridge\Symfony\Builder\GatewayFactoryBuilder
arguments: [Pixers\Payum\Dotpay\DotpayGatewayFactory]
tags:
- { name: payum.gateway_factory_builder, factory: dotpay }
Config.yml:
payum:
gateways:
dotpay_checkout:
factory: dotpay
id: company_id_from_dotpay_panel
method: 'POST'|'GET' // (optional) default=GET
URLC: '//some_url', // (optional)
url: '//some_url', // (optional)
endpoint: 'https://ssl.dotpay.pl/', // (optional)
type: 0|1|2|3, // (optional) default=3
PIN: hjkert543dgt67yh, // for URLC callbacks (must be set before in dotpay panel) (optional)
ip: 195.150.9.37 // this dotpay ip calls to URLC (optional)
Resources
Author
- Michał Kanak michal.kanak@pixers.pl
License
Copyright 2016 PIXERS Ltd - www.pixersize.com
Licensed under the BSD 3-Clause
pixers/payum-dotpay 适用场景与选型建议
pixers/payum-dotpay 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 17.86k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2016 年 01 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「payment」 「dotpay」 「payum」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 pixers/payum-dotpay 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pixers/payum-dotpay 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 pixers/payum-dotpay 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Payum integration for Symfony e-commerce applications.
Quickpay payment plugin for Sylius
Saferpay Payum plugin providing Ecommerce and Business features
Package for Dotpay payments via api instead of form
Payment Bundle providing access to the Dotpay API
Rich payment solutions for zend framework2. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more
统计信息
- 总下载量: 17.86k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2016-01-28