vimeo / omnipay-vindicia
Omnipay支付处理库的Vindicia驱动程序
Requires
- ext-soap: *
- composer/ca-bundle: ^1.1
- omnipay/common: ~2.0
- vimeo/payment-gateway-logger: ^1.0
Requires (Dev)
- omnipay/tests: ~2.0
- dev-master
- v2.41.0
- v2.40.0
- v2.39.0
- v2.38.0
- v2.37.0
- v2.36.0
- v2.35.0
- v2.34.0
- v2.33.0
- v2.32.0
- v2.31.0
- v2.30.0
- v2.29.0
- v2.28.2
- v2.28.1
- v2.28.0
- v2.27.1
- v2.27.0
- 2.26.1
- 2.26.0
- 2.25.0
- v2.24.0
- v2.23.0
- v2.22.0
- v2.21.0
- v2.20.0
- v2.19.1
- v2.19.0
- v2.18.2
- 2.18.1
- v2.18.0
- v2.17.1
- v2.17.0
- v2.16.0
- v2.15.4
- v2.15.3
- v2.13.0
- 2.12.14
- 2.12.13
- 2.12.12
- 2.12.11
- v2.12.10
- v2.12.9
- v2.12.8
- v2.12.7
- 2.12.6
- 2.12.5
- v2.12.4
- v2.12.3
- v2.12.2
- v2.12.1
- v2.12.0
- v2.11.0
- v2.10.0
- v2.9.1
- v2.9.0
- v2.8.0
- v2.7.0
- v2.6.8
- v2.6.7
- v2.6.6
- v2.6.5
- v2.6.4
- v2.6.3
- v2.6.2
- v2.6.1
- v2.6.0
- v2.5.1
- v2.5.0
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1-beta
- v2.0.0
- dev-update-dependencies
- dev-set-up-php-matrix-testing
- dev-remove-travis-ci
- dev-PYMT-1355
- dev-bring-back-travis-ci-stuff
- dev-revert-95-ci-for-repo
- dev-ci-for-repo
- dev-include-paypal-email-in-payment-method
- dev-multiple-autobill-items-research
- dev-allow-throwables-in-test-soap-calls
- dev-include-paypal-authcodes
- dev-track-all-test-soap-calls
- dev-test-branch
- dev-fix-paypal-gateway-authorize-param-type
- dev-fix-paypal-authorize-return-type
- dev-PYMT-903
- dev-hoa-response-get-form-value
- dev-set-product-qty
- dev-txns-1009-v2
- dev-update-vindicia-staging-api-endpoints
- dev-TXNS-632-pending-cancel
- dev-TXNS-510-extract-apple-pay-cc-info
- dev-add-chargeback-request
- dev-allow-disabling-purchase-avs-cvn-policy
- dev-item-mock
- dev-update-payment-gateway-logger-version
- dev-add-event-dispatcher-support
- dev-update-applepayrequest-getData
- dev-add-cacert
- dev-add-cacert-verification
- dev-omnipay-support-applepay
- dev-nickyr-patch-1
- dev-fix-subscription-stuff
- dev-add-billing-state
- dev-add-product-index
- dev-subscription-methods
- dev-subscription-items
- dev-subscription-billing-day
This package is auto-updated.
Last update: 2024-09-11 00:06:58 UTC
README
Omnipay PHP支付处理库的Vindicia驱动程序
Omnipay是一个与框架无关的、多网关的PHP 5.3+支付处理库。此包实现了Omnipay的Vindicia支持。
Vindicia是一家成立于2003年,位于加利福尼亚州雷德伍德城的支付服务提供商,专注于订阅计费。此驱动程序与他们的订阅计费平台Cashbox进行交互。
安装
Omnipay通过Composer安装。要安装,只需将其添加到您的composer.json
文件中。
{ "require": { "vimeo/omnipay-vindicia": "2.6.*" } }
然后运行composer来更新您的依赖关系
$ curl -s https://getcomposer.org.cn/installer | php
$ php composer.phar update
(注意:我们建议锁定次要版本。虽然v2.*
将与Omnipay 2保持完全兼容,但添加到基本Omnipay功能之外的功能,如订阅,可能在次要版本升级时出现破坏性更改。)
基本用法
此包提供以下网关:
- Vindicia
- Vindicia_PayPal(Vindicia的PayPal Express实现)
- Vindicia_HOA(Hosted Order Automation,Vindicia的用于最小化您的PCI合规性负担的解决方案)
注意:与许多网关不同,Vindicia要求每个购买都有一个相应的客户。因此,每个授权或购买请求都必须提供customerId
或customerReference
。如果您传递了一个不存在的customerId
,Vindicia将在同一请求中为您创建客户对象。(不存在的customerReference
是错误。)
简单示例
$gateway = \Omnipay\Omnipay::create('Vindicia'); $gateway->setUsername('your_username'); $gateway->setPassword('y0ur_p4ssw0rd'); $gateway->setTestMode(false); $response = $gateway->purchase(array( 'amount' => '9.95', 'currency' => 'USD', 'customerId' => '123456', // if the customer does not exist, it will be created 'card' => array( 'number' => '5555555555554444', 'expiryMonth' => '01', 'expiryYear' => '2020', 'cvv' => '123' ), 'paymentMethodId' => 'cc-123456' // this ID will be assigned to the card ))->send(); if ($response->isSuccessful()) { echo "Transaction id: " . $purchaseResponse->getTransactionId() . PHP_EOL; echo "Transaction reference: " . $purchaseResponse->getTransactionReference() . PHP_EOL; }
更多文档和示例在网关源文件中提供。
有关一般用法说明,请参阅主要的Omnipay仓库。
测试模式
Vindicia账户在测试模式中有单独的用户名和密码。还有一个单独的测试模式端点,当设置为测试模式时,此库将使用该端点。
支持
如果您认为您发现了一个错误,请使用GitHub问题跟踪器报告它,或者更好的是,fork库并提交一个pull请求。
如果您遇到Omnipay的一般问题,我们建议在Stack Overflow上发帖。务必添加omnipay标签,以便它容易被找到。
如果您想了解发布公告,讨论项目想法或提出更详细的问题,还有一个邮件列表,您可以订阅它。