1. Go to this page and download the library: Download tcgunel/omnipay-ahlpay 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/ */
tcgunel / omnipay-ahlpay example snippets
use Omnipay\Omnipay;
$gateway = Omnipay::create('Ahlpay');
$gateway->setMerchantId('100'); // Your member ID
$gateway->setMerchantUser('user@email'); // Login email
$gateway->setMerchantPassword('pass'); // Login password
$gateway->setMerchantStorekey('key'); // Store key for hash
$gateway->setToken('jwt-token'); // Auth token (obtained separately)
$gateway->setTokenType('Bearer'); // Token type
$gateway->setAhlpayMerchantId(5001); // Ahlpay merchant ID (from token response)
$gateway->setTestMode(true);