PHP code example of semyonchetvertnyh / omnipay-paysera
1. Go to this page and download the library: Download semyonchetvertnyh/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/ */
semyonchetvertnyh / omnipay-paysera example snippets
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.