PHP code example of autumndev / omnipay-verifone-web-service

1. Go to this page and download the library: Download autumndev/omnipay-verifone-web-service 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/ */

    

autumndev / omnipay-verifone-web-service example snippets


//build and config gateway
$gateway = Omnipay::create(
    '\Autumndev\VerifoneWebService\SessionBasedGateway'
);
$gateway->setTestMode(true);
$gateway->setPasscode($passcode);
$gateway->setSystemGuid($guid);
$gateway->setSystemId($systemId);
//build and configure request
$session = $gateway->generateSession([
    'returnurl' => 'SOME URL',
    'fullcapture' => true
]);
//send request, recieve response.
$response = $session->send();