Skip to content

Commit

Permalink
add usage example with qr generaotr
Browse files Browse the repository at this point in the history
  • Loading branch information
icez committed Jan 8, 2018
1 parent 2fb8727 commit 8ecbd7a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "phpqrcode"]
path = phpqrcode
url = https://github.com/t0k4rt/phpqrcode
11 changes: 11 additions & 0 deletions example.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
require 'libpromptpay.php';
require 'phpqrcode/qrlib.php';

$pp = new LibPromptpay();
$pp->setPaymentID(LibPromptpay::PROMPTPAY_ACCTYPE_EWALLET, '004999000281286');
$pp->setQRType(LibPromptpay::EMVCO_QRTYPE_DYNAMIC);
$pp->setAmount(1);

header('Content-Type: image/png');
QRcode::png($pp->generateString());
1 change: 1 addition & 0 deletions phpqrcode
Submodule phpqrcode added at d213c4

0 comments on commit 8ecbd7a

Please sign in to comment.