gcgov/payjunction

Open source PHP SDK for PayJunction API.

v1.1.2 2022-02-14 12:43 UTC

This package is auto-updated.

Last update: 2024-05-29 04:49:49 UTC


README

See https://developer.payjunction.com/ for full PayJunction API documentation. This package is not affiliated with or supported by PayJunction.

SmartTerminals

$config = new \gcgov\payjunction\config( 'username', 'password', 'apiKey', 'terminalId', 'merchantId' );
$smartTerminalApi = new \gcgov\payjunction\smartTerminal( $config );

//Methods available for interacting with Smart Terminal
$smartTerminalApi->reset();
$smartTerminalApi->status( 'request-id-from-response');
$smartTerminalApi->requestPayment( 100.25 );
$smartTerminalApi->requestSignature( 'Terms and conditions to display on screen');
$smartTerminalApi->signatureImage( 'signature-id-from-response');