PHP code example of superbrave / omnipay-icepay-payments
1. Go to this page and download the library: Download superbrave/omnipay-icepay-payments 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/ */
superbrave / omnipay-icepay-payments example snippets
$gateway = Omnipay\Omnipay::create('\Omnipay\IcepayPayments\Gateway');
// or
$gateway = new \Omnipay\IcepayPayments\Gateway(/* $httpClient, $httpRequest */);
$gateway->initialize([
'secretKey' => $secretKey, // The given secret key.
'contractProfileId' => $contractProfileId, // The given contract profile id or user id.
'testMode' => false // Optional, default: true
]);
// or
$gateway->setSecretKey($secretKey);
$gateway->setContractProfileId($contractProfileId);