gcgov / payjunction
Open source PHP SDK for PayJunction API.
v2.0.1
2025-08-28 17:06 UTC
Requires
- php: >=8.0
- andrewsauder/json-deserialize: ^3.0
- guzzlehttp/guzzle: ^7.9
This package is auto-updated.
Last update: 2025-08-28 17:07:54 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');
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 );