w-vision/globalpay

This package is abandoned and no longer maintained. No replacement package was suggested.

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

1.0.1 2017-09-11 14:55 UTC

This package is auto-updated.

Last update: 2021-11-12 13:36:54 UTC


README

Globalpay

Software License Latest Stable Version

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