hexageek1337/tripay-library

适用于TriPay(印度尼西亚本地支付网关)的库,使用PHP版本7和MariaDB数据库。

1.0 2021-04-10 06:51 UTC

This package is auto-updated.

Last update: 2024-09-29 06:14:25 UTC


README

适用于TriPay(印度尼西亚本地支付网关)的库,使用PHP版本7和MariaDB数据库

安装

使用composer安装

$ composer require hexageek1337/tripay-library

使用git手动安装

$ git clone https://github.com/hexageek1337/TriPay-Library
$ cd TriPay-Library-main
$ cp lib/Tripay.php your_application_folder

用法

沙盒 Sandbox Merchant Key 生产 Production Merchant Key

  • 然后,在文件 lib/Tripay.php 中配置您的mysql数据库连接 $this->dbH = new mysqli("localhost", "root", "", "bs");
  • 然后请注意,在文件 lib/Tripay.php 中存在 $field_status,$field_kodetrans,$tabel_trans,根据您的数据库条件进行匹配
  • 您可以在 example 文件夹中查看使用此库的示例

变量链接列表

// 通道URL

public $URL_channelPs = 'https://payment.tripay.co.id/api-sandbox/payment/channel';
public $URL_channelPp = 'https://payment.tripay.co.id/api/payment/channel';
public $URL_channelMs = 'https://payment.tripay.co.id/api-sandbox/merchant/payment-channel';
public $URL_channelMp = 'https://payment.tripay.co.id/api/merchant/payment-channel';

// 计算器URL

public $URL_calcMs = 'https://payment.tripay.co.id/api-sandbox/merchant/fee-calculator';
public $URL_calcMp = 'https://payment.tripay.co.id/api/merchant/fee-calculator';

// 交易URL

// 创建

public $URL_transMs = 'https://payment.tripay.co.id/api-sandbox/transaction/create';
public $URL_transMp = 'https://payment.tripay.co.id/api/transaction/create';
public $URL_transOpenMs = '';
public $URL_transOpenMp = 'https://payment.tripay.co.id/api/transaction/open-payment/create';

// 关闭系统的详细信息

public $URL_transDetailMs = 'https://payment.tripay.co.id/api-sandbox/transaction/detail';
public $URL_transDetailMp = 'https://payment.tripay.co.id/api/transaction/detail';

// 带uuid的打开系统详细信息

public $URL_transDetailOpenMs = '';
public $URL_transDetailOpenMp = 'https://payment.tripay.co.id/api/transaction/open-payment/';
public $URL_transPembOpenMs = '';
public $URL_transPembOpenMp = 'https://payment.tripay.co.id/api/transaction/open-payment/';

问候

Denny Septian Panggabean