vimeo / omnipay-vindicia
Vindicia driver for the Omnipay payment processing library
Installs: 154 875
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 14
Forks: 9
Open Issues: 8
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-12-11 00:39:53 UTC
README
Vindicia driver for the Omnipay PHP payment processing library
Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Vindicia support for Omnipay.
Vindicia is a payment services provider founded in Redwood City, CA in 2003 and focused on subscription billing. This driver interfaces with Cashbox, their subscription billing platform.
Installation
Omnipay is installed via Composer. To install, simply add it
to your composer.json
file:
{ "require": { "vimeo/omnipay-vindicia": "2.6.*" } }
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
(Note that we recommend pinning the minor version. While v2.*
will remain fully compatible with Omnipay 2, features added in addition to the base Omnipay features, such as subscriptions, may have breaking changes in a minor version bump.)
Basic Usage
The following gateways are provided by this package:
- Vindicia
- Vindicia_PayPal (Vindicia's PayPal Express implementation)
- Vindicia_HOA (Hosted Order Automation, Vindicia's solution for minimizing your PCI compliance burden)
NOTE: Unlike many gateways, Vindicia requires that every purchase have a corresponding customer. Therefore, the customerId
or customerReference
must be provided for every authorize or purchase request. If you pass a customerId
that does not exist, Vindicia will create the customer object for you as part of the same request. (A customerReference
that does not exist is an error.)
Simple Example
$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; }
More documentation and examples are provided in the Gateway source files.
For general usage instructions, please see the main Omnipay repository.
Test Mode
Vindicia accounts have a separate username and password for test mode. There is also a separate test mode endpoint, which this library will use when set to test mode.
Support
If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.
If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found.
If you want to keep up to date with release announcements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to.