This library is for those who want to work with Tranzila Payment Gateway to process online payments.
The Tranzila documentation isn't clear or accurate with the system itself - save yourself the headache and the time to understand how it actually works by using the library instead.
It's very simple.
Include the library in your PHP application, and pass an array of parameters to the constructor:
$data = array( 'creditCardNumber' => $credit_card_number, 'PID' => $pid, 'amount' => $total_price, 'month' => $month, 'year' => $year, 'nPay' => $split_payments, 'CVV' => $cvv, 'email' => $email, 'pdesc' => 'Product Description', 'price' => $total_price, 'address' => $address, 'city' => $city, 'company' => $name_on_receipt ); $tranzila = new Tranzila($data); $result = $tranzila -> connect();
The keys in
$data are the names of the properties in the class (you can see inline comments in the class for more detailed information).
Please note: This class already takes into account the invoicing Tranzila supplies. If you don't use the invoicing app, don't pass the parameters from
connect() method returns you the error code (see Tranzila's API manual for information on that).