Created
July 21, 2016 17:44
-
-
Save darilldrems/b8a522d690179368ac26b0245cc40642 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use PayWithCapture\Services\Authentication; | |
use PayWithCapture\Services\QRCode; | |
$auth = new Authentication($this->clientId, $this->clientSecret); | |
$auth->loadAccessToken(); | |
$token = $auth->getAccessToken(); | |
$qrClient = new QRCode($token); | |
$data = array( | |
"merchant_id" => "", | |
"amount" => "1000", | |
"name" => "riri", | |
"description" => "riri for sell", | |
"is_amount_locked" => false, | |
"image" => base64_encode("blahblahblah") | |
); | |
$response = $qrClient->generateQRCode($data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment