w-vision / globalpay
Globalpay Plugin for Pimcore – enables access to various gateways
Installs: 44
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 3
Type:pimcore-plugin
Requires
- bummzack/omnipay-postfinance: ~0.1
- omnipay/omnipay: ~2.0
- pimcore/installer-plugin: >=1
- w-vision/omnipay-datatrans: dev-master
This package is auto-updated.
Last update: 2021-11-12 13:36:54 UTC
README
Globalpay Plugin for Pimcore – enables access to various gateways
Getting Started
Install with composer
composer require w-vision/Globalpay 1.0.0
Description
Globalpay depends on the great Omnipay PHP Library https://github.com/thephpleague/omnipay. Globalpay supports following Gateways
- Postfinance
How to trigger a payment:
$this->_helper->globalpay('Postfinance', 'donate_pay', 100, 'CHF', [ 'controller' => 'default', 'action' => 'donate-success', 'module' => 'default', 'params' => [ 'TEST' => 1 ] ], [ 'controller' => 'default', 'action' => 'donate-cancel', 'module' => 'default', 'params' => [ 'TEST' => 2 ] ], [ 'controller' => 'default', 'action' => 'donate-error', 'module' => 'default', 'params' => [ 'TEST' => 3 ] ]);
Configuring Custom Routes
Name: donate_pay
Pattern: /(\w+)\/payment\/(.*)\/(\w+)/
Reverse: /%lang/payment/%gateway/%act
Module: Globalpay
Controller: payment
Action: %act
Variables: lang,gateway,act