PHP code example of litvinchuk / laravel-liqpay
1. Go to this page and download the library: Download litvinchuk/laravel-liqpay library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
litvinchuk / laravel-liqpay example snippets
public function tools()
{
return [
new \Litvinchuk\LaravelLiqpay\LaravelLiqpay([
'registerPublicRoutes' => true,
]),
];
}
use Litvinchuk\LaravelLiqpay\LiqpayPayment;
$payment = LiqpayPayment::createPayment(10, 'UAH', 'Test payment description');
$payment->getPaymentLink()
$payment->renderInline()