ubitransports / omnipay-payzen
PayZen driver for the Omnipay payment processing library
Installs: 40 050
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 3
Open Issues: 6
Requires
- php: ^8
- omnipay/common: ^3.0
- symfony/http-client: ^6.3
Requires (Dev)
- http-interop/http-factory-guzzle: ^1.2
- omnipay/tests: ^4.0
- phpunit/phpunit: ^8.5
- dev-master
- v3.2.0
- v3.1.0
- v3.0.0
- 2.2.0
- 2.1.0
- 2.0.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.1
- v1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- dev-omnipay-payzen-based-on-omnipay-v3.0
- dev-quick-omnipay-payzen-based-on-omnipay-v3.0
- dev-CORE-3896_upgrade-composer
- dev-feat/add-shiptotype-param
- dev-feat/param-payment-config
- dev-feat/add-currency-param
- dev-develop
This package is auto-updated.
Last update: 2024-10-23 13:32:19 UTC
README
PayZen 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 SecurePay support for Omnipay.
Installation
Omnipay is installed via Composer. To install, simply add it
to your composer.json
file:
{ "require": { "ubitransports/omnipay-payzen": "dev-master" } }
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
Basic Usage
The following gateways are provided by this package:
- PayZen
For general usage instructions, please see the main Omnipay repository.
Advanced Usage
Saving Cards
Creating a token during payment
$paymentParams = array( ... 'createCard' => true, 'ownerReference' => 'an owner reference', )); $purchaseRequest = $gateway->purchase($paymentParams); $redirectResponse = $purchaseRequest->send();
Creating a token without payment
$paymentParams = array( ... 'ownerReference' => 'an owner reference', )); $createCardRequest = $gateway->createCard($paymentParams); $redirectResponse = $createCardRequest->send();
Retrieve a token in the purchase payzen callback reponse
$paymentParams = array( ... )); $completePurchaseRequest = $gateway->completePurchase($paymentParams); $callbackResponse = $completePurchaseRequest->send(); if ($callbackResponse->hasCreatedCard()) { $cardReference = $callbackResponse->getCardReference(); $ownerReference = $callbackResponse->getOwnerReference(); }
Paying using saved Cards
$paymentParams = array( ... 'cardReference' => 'XXXXXXXXXX', )); $purchaseRequest = $gateway->purchase($paymentParams); $redirectResponse = $purchaseRequest->send();
Support
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 anouncements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to.
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.