All Projects → tpay-com → tpay-php

tpay-com / tpay-php

Licence: other
No description or website provided.

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to tpay-php

cybersource-android-sdk
The CyberSource InApp SDK enables developers to simply and securely incorporate mobile payments into their Android applications.
Stars: ✭ 25 (+47.06%)
Mutual labels:  payment-gateway, payment-integration
nagadApi
This is Bangladeshi nagad payment gateway api development library. This library can be used in any php application.
Stars: ✭ 20 (+17.65%)
Mutual labels:  payment-gateway, payment-integration
adyen-hybris
Adyen Payment plugin for Hybris
Stars: ✭ 23 (+35.29%)
Mutual labels:  payment-gateway, payment-integration
Paynow-NodeJS-SDK
NodeJS SDK for Zimbabwe's leading payments gateway, Paynow
Stars: ✭ 23 (+35.29%)
Mutual labels:  payment-gateway, payment-integration
omnipay-2checkout
2Checkout driver for the Omnipay PHP payment processing library
Stars: ✭ 25 (+47.06%)
Mutual labels:  payment-gateway, payment-integration
awesome-payment
A curated list of payment services
Stars: ✭ 22 (+29.41%)
Mutual labels:  payment-gateway, payment-integration
wc-moldovaagroindbank
WooCommerce maib Moldova Agroindbank Payment Gateway
Stars: ✭ 13 (-23.53%)
Mutual labels:  payment-gateway, payment-integration
adyen-dotnet-api-library
Adyen API Library for .NET
Stars: ✭ 69 (+305.88%)
Mutual labels:  payment-gateway, payment-integration
cybersource-sdk-java
Java SDK for CyberSource Simple Order API
Stars: ✭ 44 (+158.82%)
Mutual labels:  payment-gateway, payment-integration
react-native-payumoney
React Native Payumoney (Android/IOS)
Stars: ✭ 18 (+5.88%)
Mutual labels:  payment-gateway, payment-integration
stripe
Stripe integration with Magento 2
Stars: ✭ 58 (+241.18%)
Mutual labels:  payment-gateway, payment-integration
adyen-python-api-library
Adyen API Library for Python
Stars: ✭ 41 (+141.18%)
Mutual labels:  payment-gateway, payment-integration
linkpe
Linkpe is a Node.js based API🐳 to generate shareable UPI Payment links
Stars: ✭ 22 (+29.41%)
Mutual labels:  payment-gateway, payment-integration
midtrans-node
Unoffficial Midtrans Payment API Client for Node JS | Alternative for Midtrans Official Module | https://midtrans.com
Stars: ✭ 15 (-11.76%)
Mutual labels:  payment-gateway, payment-integration
paymentgateway
Dokumentace ČSOB platební brány a jejího eAPI pro platby platebními kartami, Apple Pay, mallpay a platebními tlačítky ČSOB.
Stars: ✭ 104 (+511.76%)
Mutual labels:  payment-gateway, payment-integration
ccashcow
💰 Accept cards & crypto. Payments so easy a cow could do it.
Stars: ✭ 40 (+135.29%)
Mutual labels:  payment-gateway, payment-integration
adyen-node-api-library
Adyen API Library for Node.js
Stars: ✭ 82 (+382.35%)
Mutual labels:  payment-gateway, payment-integration
python-daraja
Python Wrapper for interacting with the MPESA Daraja API. More Features to be implemented
Stars: ✭ 20 (+17.65%)
Mutual labels:  payment-gateway, payment-integration
adyen-salesforce-commerce-cloud
Salesforce Commerce Cloud (formerly Demandware)
Stars: ✭ 63 (+270.59%)
Mutual labels:  payment-gateway, payment-integration
tbc-credit-card-payment-gateway-php-lib
PHP library for the TBC credit card payment gateway API.
Stars: ✭ 80 (+370.59%)
Mutual labels:  payment-gateway

Tpay

Library for all payment methods available in Tpay

Requirements

  • PHP > 5.6.0

Installation

Install via composer:

composer require tpay-com/tpay-php

Install via git over ssh:

git clone [email protected]:tpay-com/tpay-php.git

Install via git over https:

git clone https://github.com/tpay-com/tpay-php.git

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 merchant panel (https://secure.tpay.com/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 src folder (see examples)

###Example configuration data should look like this:

merchantId - merchant id ex. 1010

merchantSecret - merchant secret ex. demo

Basic Payments and bank selection forms:

Example of usages: Basic, Bank selection html form, Bank selection API form, Blik form

Transaction API / create, get, refund, report

Example of usages: Create transaction, Refund Transaction, Refund Transaction Status

Card Basic / Card On-Site

Example of usages: Card basic form, Card On-site Gateway, Card payment links builder, 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 switch this feature by command:

Util::$loggingEnabled = false;

You can also set your own logging path by this command:

Util::$customLogPatch = '/my/own/path/Logs/';

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.

Util::$customTemplateDirectory = '/my/own/templates/path/';

Language

For this moment library supports two languages (EN, PL). Default language is english. Change language example:

//All Tpay class constructors load Lang class
$tpay = new BankSelectionExample();

//After this line all static messages (input labels, buttons titles) will be displayed in Polish
(new Util())->setLanguage('pl');

If you want to access translations manually, use:
$language = new Lang()
$language->setLang('pl'); for setting language
$language->l('pay'); to echo translated key

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)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].