Globalpay Plugin for Pimcore – enables access to various gateways
Install with composer
composer require w-vision/Globalpay 1.0.0
Globalpay depends on the great Omnipay PHP Library https://github.com/thephpleague/omnipay. Globalpay supports following Gateways
- Postfinance
$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
]
]);
Name: donate_pay
Pattern: /(\w+)\/payment\/(.*)\/(\w+)/
Reverse: /%lang/payment/%gateway/%act
Module: Globalpay
Controller: payment
Action: %act
Variables: lang,gateway,act