1. Go to this page and download the library: Download xenon/sslcommerz 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/ */
xenon / sslcommerz example snippets
$customer = new Customer('Ariful Islam', '[email protected]', '0171xxxxx22');
$customer->setOptionA('A');
$customer->setOptionB('B');
$customer->setOptionC('C');
$customer->setOptionD('D');
$invoice = 'trx_' . uniqid(); //transaction or invoice string
$resp = Client::initSession($customer, 10, $invoice); //29 is the amount
return redirect($resp->getGatewayUrl());