定制 loov/php-sdk 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

loov/php-sdk

最新稳定版本:v1.0.9

Composer 安装命令:

composer require loov/php-sdk

包简介

Online payment solution

README 文档

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.

统计信息

  • 总下载量: 28
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-19