1. Go to this page and download the library: Download simpaypl/laravel 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/ */
simpaypl / laravel example snippets
use SimPay\Laravel\Facades\SimPay;
SimPay::payment();
SimPay::directBilling();
SimPay::sms();
SimPay::directBilling()->generate()
->amount(15.00)
->amountType(\SimPay\Laravel\Enums\DirectBilling\AmountType::Net)
// other are optionals
->returns(new \SimPay\Laravel\Dto\ReturnData(
'https://success.pl',
'https://failure.com',
))
->control('Control field (ex. your database id from your integration)')
->description('Transaction description')
->phoneNumber('+48123123123')
->steamId('SteamID64')
->email('Email')
// make is