Download the PHP package tpay-com/tpay-php without Composer
On this page you can find all versions of the php package tpay-com/tpay-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package tpay-php
Tpay
Library for all payment methods available in Tpay.
Polish version :poland: wersja polska
Installation
Install via Composer:
Install via Git over SSH:
Install via Git over HTTPS:
Manual download: https://github.com/tpay-com/tpay-php/archive/master.zip
Configuration
The only thing you need to do is to set your API access data via $this->
(see examples).
You can generate access keys in Tpay's merchant panel.
The loader.php
file handles all required class loading, so you can include this file to any file you are editing.
(remember to configure your current working path correctly).
All methods described in Tpay documentation can be easily executed by extending required class in main see examples).
Basic Payments and bank selection forms
Example of usages: BLIK form.
Transaction API / create, get, refund, report
Example of usages: refund transaction status.
Card Basic / Card On-Site
Example of usages: card on-site gateway with saved cards.
Logs
Library has own logging system to save all confirmations and notifications sent by Tpay.com server, outgoing requests and exceptions.
Be sure that file src/Logs
directory is writable and add rule to Apache .htaccess
or NGINX to deny access to this area from browser.
The log files are created for each day separately under Logs
directory.
The logging is enabled by default, but you can disable this feature with:
You can also set your own logging path by this command:
You can also set you own Logger by this command it has to be compatible with Psr\Log\LoggerInterface
:
The logs file names will be assigned automatically.
Custom templates path
You can set your own templates path, so you can copy and modify the phtml
template files from this library.
Language
Currently, the library supports two languages (English and Polish). Default language is English. Changing language example:
License
This library is released under the MIT License,
but uses third party libraries that are distributed under their own terms (see LICENSE-3RD-PARTY.md
).
All versions of tpay-php with dependencies
ext-curl Version *
ext-json Version *
phpseclib/phpseclib Version ^2 || ^3
psr/log Version ^1 || ^2 || ^3