loov/php-sdk

Online payment solution

v1.0.9 2022-12-29 12:36 UTC

This package is auto-updated.

Last update: 2024-05-29 05:09:33 UTC


README

Total Downloads Latest Stable Version License

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

Varibale name Type Required
amount number yes
sender_currency string yes
return_url string yes
notify_url string no
cancel_url string yes
APP-KEY string yes
MERCHANT-KEY string yes

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.