PHP code example of behzadbabaei / omnipay-revolut
1. Go to this page and download the library: Download behzadbabaei/omnipay-revolut 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/ */
behzadbabaei / omnipay-revolut example snippets
use Omnipay\Omnipay;
$gateway = Omnipay::create('Revolut');
$gateway->setAccessToken('Access-Token');
$gateway->setLanguage('EN'); // Language
$gateway->setAccountId('Merchant-Accounti-Id');
$gateway->setAmount(31.90); // Amount to charge
$gateway->setTransactionId(XXXX); // Transaction ID from your system