1. Go to this page and download the library: Download ion-bazan/pl-qr-payment 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/ */
ion-bazan / pl-qr-payment example snippets
use IonBazan\PaymentQR\Poland\QrPayment;
$payment = new QrPayment(
'4249000050026313017364142', // Account number
'Testowy odbiorca', // Recipient name
'Tytuł płatności', // Payment title
12345 // Amount in gr
);
/** @var \Endroid\QrCode\QrCode $qrCode */
$qrCode = $payment->getQrCode(); // Do anything you want with the QrCode object
header('Content-Type: '.$qrCode->getContentType());
echo $qrCode->writeString();
use IonBazan\PaymentQR\Poland\QrPayment;
$payment = new QrPayment(
'4249000050026313017364142', // Account number
'Testowy odbiorca', // Recipient name
'Tytuł płatności', // Payment title
12345, // Amount in gr
'5214349636', // Recipient NIP (optional)
'PL', // Country code (only PL is supported) (optional)
'11223344', // Customer ID for Direct Debit (optional)
'990066' // Invoobill ID (optional)
);
$qrString = $payment->getQrString(); // You can encode it using the QR library of your choice ...
echo $qrString; // ... or just print it for debug
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.