loov / php-sdk
Online payment solution
v1.0.9
2022-12-29 12:36 UTC
Requires
- php: >=5.4.1
- ext-curl: *
Requires (Dev)
- phpstan/phpstan: 1.9.x-dev
README
Introduction
Loov Solutions is an online payment tools....
Installation
Run this in your terminal to install Shopper from command line:
composer require loov/php-sdk
Requirement
Make a payment
<?php
namespace App\Http\Controllers;
use Loov\PhpSdk\LoovPay;
class payment extends Controller
{
public function index()
{
$data = [
'amount' => 2000,
'sender_currency' => 'XAF',
'return_url' => 'https://cosna-afrique.com',
'cancel_url' => 'https://cosna-afrique.com',
'notify_url' => 'https://cosna-afrique.com',
];
$res = (new LoovPay())->setKeys(App-key, Merchant-key)->initPayment($data);
return [$res];
}
}
Check transaction status
<?php
namespace App\Http\Controllers;
use Loov\PhpSdk\LoovPay;
class payment extends Controller
{
public function testPayment()
{
$res = (new LoovPay())->setKeys(App-key, Merchant-key)->checkStatus(Loov reference);
}
}
License
The Loov Solutions PHP SDK is open-sourced software licensed under the MIT license.
Security
If you discover any security related issues, please email randyahmedjunior@gmail.com instead of using the issue tracker.
It's heavily recommended that you subscribe to the Loov Newsletter so you can find out about any security updates, breaking changes or major features. We send an email about 3-4 emails per year. Sometimes less.