olakunlevpn/gladepaysdk-php

用PHP编写的Gladpay SDK。

0.0.6 2019-12-23 16:46 UTC

This package is auto-updated.

Last update: 2024-09-18 05:41:50 UTC


README

用PHP编写的Gladepay SDK (www.gladepay.com)

Issues Stars Latest Stable Version Total Downloads Latest Unstable Version License

注意:此存储库包含将gladepay.com API集成到您的项目的Gladepay SDK。您需要一个商户ID和密钥来对API进行身份验证。在此注册 https://dashboard.gladepay.com/register 或使用演示测试API凭据:商户ID:GP0000001 商户密钥:123456789

1. 安装

  1. 使用Composer要求此包

    composer require olakunlevpn/gladepaysdk-php
    

2. 使用方法

  1. 接下来,在您的应用程序中要求Composer的自动加载器,以自动在您的项目中加载Gladpaysdk
require_once "vendor/autoload.php";


use Olakunlevpn\Gladepaysdk\GladepaySDk;

$merchant_id = "GP0000001"; //To get your live credentials register here https://dashboard.gladepay.com/register
$merchant_key = "123456789"; //To get your live credentials register here https://dashboard.gladepay.com/register

//Auth session with your Merchant ID and Merchant Key.
$Glade = new GladepaySDk($merchant_id, $merchant_key, true); //Change value to true if you are using demo merchant and key

文档

如果您不理解Gladpaysdk SDK的某些内容,请查阅详尽的文档以获取答案。

致谢

许可证

MIT许可证(MIT)。有关更多信息,请参阅许可证文件