Giter Site home page Giter Site logo

tpay-php's Introduction

tpay.com

Library for all payment methods available in tpay.com

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

Replace all occurrences of the following codes on real data from the Merchant panel (https://secure.tpay.com/panel):

Basic / Basic with bank selection / eHat

  • [MERCHANT_ID] - merchant id ex. 14868
  • [MERCHANT_SECRET] - merchant secret ex. nd6u7duYeso4hrtc

Example of usages: Basic Basic with bank selection eHat

Card Basic / Card Direct

  • [MERCHANT_ID] - merchant id ex. 14868
  • [MERCHANT_SECRET] - merchant secret ex. nd6u7duYeso4hrtc
  • [CARD_API_KEY] - card API key ex. 455ue12b1c26a9570vb852b31680ce6k3f706p9
  • [CARD_API_PASSWORD] - card API key ex. od0ufdrYap343r0
  • [CARD_API_CODE] - card API code ex. i2128h0e6b17a78fn3c1adaod262o120
  • [CARD_RSA_KEY] - card RSA key ex. S10tLS1CURdJTiBQVUJMSUMgS0VZLS0tLS0NCk1JR2ZNQTBHQ1NxR1NJYjNEUUXCQVFVQUE0R05ERBNCaVFLQmdRQ2NLRTVZNU1Wemd5a1Z5ODNMS1NTTFlEMEVrU2xadTRVZm1STS8NCmM5L0NtMENuVDM2ekU0L2dMRzBSYzQwODRHNmIzU3l5NVpvZ1kwQXFOVU5vUEptUUZGVyswdXJacU8yNFRCQkxCcU10TTVYSllDaVQNCmVpNkx3RUIyNnpPOFZocW9SK0tiRS92K1l1GlDXNGQ0cWtHU0IzeHBhSUJncllrT2o0aFJDOXk0WXdJ11FRQUINCi0tLS0tRU5EIFBVQkxJQyBLRVktLS0tLQ==
  • [CARD_HASH_ALG] - card hash algorithm ex. sha1

Example of usages: Card Basic Card Direct

Szkwal / White Label

  • [MERCHANT_ID] - merchant id ex. 14868
  • [MERCHANT_SECRET] - merchant secret ex. nd6u7duYeso4hrtc
  • [SZKWAL_LOGIN] - szkwal API login ex. supershop
  • [SZKWAL_API_PASSWORD] - szkwal API password ex. igtht7i7m08tdsg4wsztrrgRDSHA
  • [SZKWAL_API_HASH] - szkwal API hash ex. fjk8IGjnh92TEcvfpo3usdZ
  • [SZKWAL_PARTNER_ADDRESS] - szkwal unique partner address ex. c_supershop
  • [SZKWAL_TITLE_FORMAT] - pattern of unique client title ex. KIR[0-9]{9}

Example of usages: Szkwal White Label

DAC / Masspayment / Transaction API requests

  • [MERCHANT_ID] - merchant id ex. 14868
  • [MERCHANT_SECRET] - merchant secret ex. nd6u7duYeso4hrtc
  • [TRANSACTION_API_KEY] - transaction API key ex. c4fb9c5482e16a848e68dbb1488ed42ddcb82311
  • [TRANSACTION_API_PASS] - transaction API secret ex. bd6u7drYesa43rtw

Example of usages: DAC Masspayment and Transaction API

Library has own logging system to save all confirmations and notifications sent by Transferuj.pl server Be sure that file src/log is writable and add rule to htaccess to deny access to this file from browser

Requirements

  • PHP > 5.4.0

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 tpay\PaymentSzkwal();

//After this line all static messages (input labels, buttons titles) will be displayed in Polish
tpay\Lang::setLang('pl');

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)

tpay-php's People

Contributors

piotrjozwiak avatar staffanselander avatar

Watchers

James Cloos avatar Fredrik Willers avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.