Skip to content

yushni/sdk-liq-pay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liq Pay Checkout

Installation

composer require yushni/liq-pay-sdk

Simple usage :

Create LiqPay class
$encoder = new LiqPay\Encoder\Encoder();
$liqPay = new LiqPay\LiqPay('privateKey', 'publicKey', true, $encoder);
Generate checkout url
$payment = LiqPay\Action\Payment::pay(1.12, "cab95cee-48b8-423b-8979-1675bb452f13", "UAH", "Description")
$payment->setResultUrl('result_url');
$payment->setServerUrl('server_url');

$liqPay->generateCheckoutUrl($payment);
Obtain callback results
$liqPay->obtainCallback('data', 'signature');

Advanced usage

You can make your own Action and declare it. Action must be instance of LiqPay\Action\Action class.
$liqPay->addAction(LiqPay\Action\Payment, ['pay'])

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages