1. Go to this page and download the library: Download barion/barion-web-php 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/ */
barion / barion-web-php example snippets
$myPosKey = "9c165cfccbd1452f830721a3a9cee664";
$apiVersion = 2;
// Test environment
$environment = \Barion\Enumerations\BarionEnvironment::Test;
// Production environment
$environment = \Barion\Enumerations\BarionEnvironment::Prod;