Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Latest commit

 

History

History
28 lines (24 loc) · 712 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 712 Bytes

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.

$apiParams = [
    'public_key' => 'some_public_key',
    'private_key' => 'some_private_key'
];

$paymentParams = [
    'action' => 'pay',
    'amount' => '1',
    'currency' => 'USD',
    'description' => 'description text',
    'order_id' => 'order_id_1',
    'version' => '3'
];

$url = LiqPayCheckoutUrlCreator::create(
    $apiParams,
    $paymentParams
);