Skip to content

gcgov/payjunction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PayJunction PHP SDK

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');

Transactions

Get One

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

//Methods available for interacting with Smart Terminal
$transactionApi->getTransaction( $transactionId );