PHP code example of travis-bradbury / php-paymentree-api
1. Go to this page and download the library: Download travis-bradbury/php-paymentree-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
travis-bradbury / php-paymentree-api example snippets
// Optional; otherwise connects on default 127.0.0.1:32000.
Paymentree::connect('192.168.10.154', 80);
$transaction = new PaymentTransaction();
$transaction->setAmount(500);
/** @var \Paymentree\DebitResponse */
$response = $transaction->send();
$transaction_id = $response->getPayLinqTransactionId();