Skip to content

Instantly share code, notes, and snippets.

@darilldrems
Created July 21, 2016 17:44
Show Gist options
  • Save darilldrems/b8a522d690179368ac26b0245cc40642 to your computer and use it in GitHub Desktop.
Save darilldrems/b8a522d690179368ac26b0245cc40642 to your computer and use it in GitHub Desktop.
<?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