1. Go to this page and download the library: Download vimeo/omnipay-vindicia 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/ */
vimeo / omnipay-vindicia example snippets
$gateway = \Omnipay\Omnipay::create('Vindicia');
$gateway->setUsername('your_username');
$gateway->setPassword('y0ur_p4ssw0rd');
$gateway->setTestMode(false);
$response = $gateway->purchase(array(
'amount' => '9.95',
'currency' => 'USD',
'customerId' => '123456', // if the customer does not exist, it will be created
'card' => array(
'number' => '5555555555554444',
'expiryMonth' => '01',
'expiryYear' => '2020',
'cvv' => '123'
),
'paymentMethodId' => 'cc-123456' // this ID will be assigned to the card
))->send();
if ($response->isSuccessful()) {
echo "Transaction id: " . $purchaseResponse->getTransactionId() . PHP_EOL;
echo "Transaction reference: " . $purchaseResponse->getTransactionReference() . PHP_EOL;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.