PHP code example of paybysquare / laravel
1. Go to this page and download the library: Download paybysquare/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/ */
paybysquare / laravel example snippets
use PayBySquare\Laravel\Facades\PayBySquare;
// Payload string to feed into any QR code renderer:
$payload = PayBySquare::payload([
'amount' => 12.34,
'iban' => 'SK7700000000000000000000',
'beneficiaryName' => 'Example s.r.o.',
'variableSymbol' => '123',
]);
// Inline SVG QR code (bash
php artisan vendor:publish --tag=paybysquare-config