项目作者: axima

项目描述 :
PHP utils for pays.cz integration.
高级语言: PHP
项目地址: git://github.com/axima/php-payment-gate.git
创建时间: 2017-03-16T10:41:38Z
项目社区:https://github.com/axima/php-payment-gate

开源协议:MIT License

下载


php-payment-gate

PHP utils for pays.cz integration.

Installation

  1. composer require axima/payment-gate

Usage

  1. use Axima\PaymentGate\Utils;
  2. $link = Utils::getPaymentLink($merchantId, $shopId, $currency, $amount, $merchantOrderNumber, $email);

To validate data on confirmation, you can use helper method:

  1. if (!Utils::validateConfirmData($password)) {
  2. // error payment
  3. } else {
  4. // success payment
  5. }

If you already have parsed data from $_GET or you are using some framework, which provides data in different way, you can pass them as second parameter (but keep the keys same as in $_GET):

  1. Utils::validateConfirmData($password, $data)

Bug reports, feature requests

Please use GitHub issue tracker / pull requests.