PHP code example of w-vision / globalpay

1. Go to this page and download the library: Download w-vision/globalpay library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

w-vision / globalpay example snippets


$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
    ]
]);