项目作者: balovbohdan

项目描述 :
Creates URL for the LickPay checkout (online payment page).
高级语言: PHP
项目地址: git://github.com/balovbohdan/liqpay-checkout-url-creator.git
创建时间: 2019-03-27T16:39:44Z
项目社区:https://github.com/balovbohdan/liqpay-checkout-url-creator

开源协议:

下载


About

LiqPay does not have API for checkout page URL creator (online payment page). It is possible to
retrieve this URL from the LiqPay API response headers. This class solves this task.

Usage

More information about parameters you can
find at LiqPay documentation.

  1. $apiParams = [
  2. 'public_key' => 'some_public_key',
  3. 'private_key' => 'some_private_key'
  4. ];
  5. $paymentParams = [
  6. 'action' => 'pay',
  7. 'amount' => '1',
  8. 'currency' => 'USD',
  9. 'description' => 'description text',
  10. 'order_id' => 'order_id_1',
  11. 'version' => '3'
  12. ];
  13. $url = LiqPayCheckoutUrlCreator::create(
  14. $apiParams,
  15. $paymentParams
  16. );