PHP code example of antibodies-online / omnipay-vr-payment
1. Go to this page and download the library: Download antibodies-online/omnipay-vr-payment 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/ */
antibodies-online / omnipay-vr-payment example snippets
$gateway = Omnipay\Omnipay::create('VrPayment_VrPayment');
$gateway->setEntityId('xyz');
$gateway->setTestMode(true);
$gateway->setAccessToken('myAccessToken');
$request = $gateway->authorize([
'transactionId' => $transactionId, // Merchant site ID (or a nonce for it)
'amount' => 9.99, // Major units
'currency' => 'EUR',
'token' => 'creditCardToken', // This is only needed, if you are using COPY+PAY
'card' => [ // Is not implemented yet
....
]
]);
$response = $request->send();