Created
July 21, 2016 16:40
-
-
Save darilldrems/5514a545a83d952226136c1d92183201 to your computer and use it in GitHub Desktop.
PwC pos printing example in php
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\PayWithCaptureClient; | |
$clientId = ""; //Your client id is in your devcenter account page | |
$clientSecret = ""; //Your client secret is in your devcenter account page | |
$env = "staging"; //this can either be staging or production | |
$client = new PayWithCaptureClient($clientId, $clientSecret, $env); | |
$posClient = $client->getPOSPrintingClient(); | |
//print details using your merchant code | |
$posClient->printWithMerchantCode($merchant_code); | |
//print details using transaction reference | |
$posClient->printWithTransactionReference($transaction_ref); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment