PHP code example of paynl / unifiedqr

1. Go to this page and download the library: Download paynl/unifiedqr 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/ */

    

paynl / unifiedqr example snippets




$UUID = \Paynl\QR\UUID::encode(\Paynl\QR\UUID::QR_TYPE_DYNAMIC, [
    'serviceId'     => 'SL-1234-5678',
    'secret'        => '0e8debc04c0dce170a1de4205053bd3ed6fd132f',
    'reference'     => '0123456',
    'referenceType' => \Paynl\QR\UUID::REFERENCE_TYPE_STRING
]);

var_dump($UUID);



$UUID = \Paynl\QR\UUID::decode([
    'secret' => '0e8debc04c0dce170a1de4205053bd3ed6fd132f',
    'uuid'   => $UUID
]);

var_dump($UUID);