Skip to content

Instantly share code, notes, and snippets.

@darilldrems
Created July 21, 2016 16:40
Show Gist options
  • Save darilldrems/5514a545a83d952226136c1d92183201 to your computer and use it in GitHub Desktop.
Save darilldrems/5514a545a83d952226136c1d92183201 to your computer and use it in GitHub Desktop.
PwC pos printing example in php
<?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