2017 © Pedro Peláez
 

library thai-promptpay-qr

PHP generate PrompPay QR Code for pay on Thailand Banking application.

image

ifew/thai-promptpay-qr

PHP generate PrompPay QR Code for pay on Thailand Banking application.

  • Thursday, February 15, 2018
  • by ifew
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 100 % Grown

The README.md

PromptpayQR

PHP generate PrompPay QR Code for pay on Thailand Banking application, (*1)

Install

get library QR Generator - run composer install, (*2)

Usage

<?php
include_once("vendor/autoload.php");
use ThaiPromptpay\PromptpayQR;

$qr = new PromptpayQR;
$qr->setPromptpayType('02');
$qr->setPromptpayID('4419928285542');
$qr->setAmount(200.50);
echo $qr->getQR();
?>

Function Reference

setPromptpayType()

set type of Promptpay ID - 01 = Mobile Number - 02 = Citizen ID, (*3)

setPromptpayID()

set Promptpay ID - for Citizen ID, Using full length of Citizen (13 Characters) and only number such as 1234567890123 - for Mobile ID, Start with "00" and Number of Country Code "66" and Mobile Phone Number exclude zero prefixes such as 0066831234567, (*4)

setAmount()

set amount of money for pay - if have amount, Using digit and 2 decimals such as 199.50 - if not want to amount, Using 0, (*5)

getQR()

Display QR Image, (*6)

generateQRwithChecksum()

Display raw text of your pay code (this code use for generating to QR Code), (*7)

QR Code try on

  • http://www.qr-code-generator.com/

Thank You

  • Crc16CCIT https://github.com/jkobus/crc16-ccit

Reference

  • https://www.blognone.com/node/95133
  • https://qr-generator.digio.co.th/
  • https://github.com/wannaphongcom/pypromptpay

The Versions

15/02 2018

dev-master

9999999-dev http://www.myifew.com

PHP generate PrompPay QR Code for pay on Thailand Banking application.

  Sources   Download

MIT

The Requires

 

by Avatar ifew

bot qrcode thailand promptpay promptpay-thailand