1. Go to this page and download the library: Download gentor/omnipay-paysera 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/ */
use Omnipay\Omnipay;
// Setup payment gateway
$gateway = Omnipay::create('Paysera');
$gateway->setProjectId('123456');
$gateway->setPassword('abcde12345');
// Accept the notification
$response = $gateway->acceptNotification()
->send();
if ($response->isSuccessful()) {
// Mark the order as paid
return true;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.