No description or website provided.
PHP HTML CSS JavaScript

README.md

tpay.com

Library for all payment methods available in tpay.com

Installation

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

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.3.0

Language

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

//All Transferuj class constructors load Lang class
$transferuj = new Transferuj\PaymentSzkwal();

//After this line all static messages (input labels, buttons titles) will be displayed in Polish
Transferuj\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)