PHP code example of lee-ratinan / emv-qr
1. Go to this page and download the library: Download lee-ratinan/emv-qr 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/ */
lee-ratinan / emv-qr example snippets
$string = '00020101021126490009SG.PAYNOW010120210202012345X0301104082021123151820007SG.SGQR0113202012345X123020701.000103068286710402010503123060400000708201912315204000053037025802SG5911RATINAN LEE6009SINGAPORE610682876162140110987654321X630429FD';
$emv = new \EMVQR\EmvMerchantDecoder($string);
$json = json_encode($emv, JSON_PRETTY_PRINT);