hexageek1337/tripay-library
Composer 安装命令:
composer require hexageek1337/tripay-library
包简介
Library untuk TriPay (Payment Gateway Lokal Indonesia) menggunakan bahasa pemrograman PHP versi 7 dan database MariaDB.
README 文档
README
Library untuk TriPay (Payment Gateway Lokal Indonesia) menggunakan bahasa pemrograman PHP versi 7 dan database MariaDB
Installation
install with composer
$ composer require hexageek1337/tripay-library
manual install with git
$ git clone https://github.com/hexageek1337/TriPay-Library
$ cd TriPay-Library-main
$ cp lib/Tripay.php your_application_folder
Usage
- Pertama registrasi akun tripay terlebih dahulu, bisa melalui link https://denny.my.id/go/tripay
- Dapatkan API Key dan Private Key pada menu Merchant
- Kemudian pada file
lib/Tripay.phpatur koneksi database mysql Anda di$this->dbH = new mysqli("localhost", "root", "", "bs"); - Lalu perhatikan juga pada file
lib/Tripay.phpterdapat$field_status,$field_kodetrans,$tabel_trans, Sesuaikan dengan kondisi database Anda - Anda bisa melihat contoh menggunakan library ini di folder
example
List Variable Link
// URLs Channel
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';
// URLs Calculator
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';
// URLs Transaction
// Create
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';
// Detail Close Sistem
public $URL_transDetailMs = 'https://payment.tripay.co.id/api-sandbox/transaction/detail';
public $URL_transDetailMp = 'https://payment.tripay.co.id/api/transaction/detail';
// Detail Open Sistem with 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/';
Regards
Denny Septian Panggabean
hexageek1337/tripay-library 适用场景与选型建议
hexageek1337/tripay-library 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 47 次下载、GitHub Stars 达 9, 最近一次更新时间为 2021 年 04 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「payment gateway」 「tripay」 「tripay-library」 「payment-library」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hexageek1337/tripay-library 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hexageek1337/tripay-library 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hexageek1337/tripay-library 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
Payyo Gateway for the Omnipay payment processing library
Client library to send SMS using Comilio SMS Gateway API (https://www.comilio.it)
Alfabank REST API integration
GovPayNet driver for the Omnipay payment processing library
BlueSnap driver for the Omnipay payment processing library
统计信息
- 总下载量: 47
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2021-04-10