Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.
/ Globalpay Public archive

Payment plugin for pimcore – enables access to various gateways

License

Notifications You must be signed in to change notification settings

instride-ch/Globalpay

Repository files navigation

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