PHPackages                             hexageek1337/tripay-library - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. hexageek1337/tripay-library

ActiveLibrary[Payment Processing](/categories/payments)

hexageek1337/tripay-library
===========================

Library untuk TriPay (Payment Gateway Lokal Indonesia) menggunakan bahasa pemrograman PHP versi 7 dan database MariaDB.

1.0(5y ago)10475GPL-3.0PHPPHP &gt;=7.3

Since Apr 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/hexageek1337/TriPay-Library)[ Packagist](https://packagist.org/packages/hexageek1337/tripay-library)[ Docs](https://github.com/hexageek1337/TriPay-Library)[ Fund](https://paypal.me/hexageek1337)[ Fund](https://saweria.co/hexageek1337)[ RSS](/packages/hexageek1337-tripay-library/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

TriPay-Library
==============

[](#tripay-library)

Library untuk TriPay (Payment Gateway Lokal Indonesia) menggunakan bahasa pemrograman PHP versi 7 dan database MariaDB

Installation
============

[](#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
=====

[](#usage)

- Pertama registrasi akun tripay terlebih dahulu, bisa melalui link
- Dapatkan API Key dan Private Key pada menu Merchant

Sandbox [![Sandbox Merchant Key](https://github.com/hexageek1337/TriPay-Library/raw/main/tripaykey_sandbox.PNG?raw=true)](https://github.com/hexageek1337/TriPay-Library/blob/main/tripaykey_sandbox.PNG?raw=true)Production [![Production Merchant Key](https://github.com/hexageek1337/TriPay-Library/raw/main/tripaykey_production.PNG?raw=true)](https://github.com/hexageek1337/TriPay-Library/blob/main/tripaykey_production.PNG?raw=true)

- Kemudian pada file `lib/Tripay.php` atur koneksi database mysql Anda di `$this->dbH = new mysqli("localhost", "root", "", "bs");`
- Lalu perhatikan juga pada file `lib/Tripay.php` terdapat `$field_status,$field_kodetrans,$tabel_trans`, Sesuaikan dengan kondisi database Anda
- Anda bisa melihat contoh menggunakan library ini di folder `example`

List Variable Link
==================

[](#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
=======

[](#regards)

Denny Septian Panggabean

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1856d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/be1785558267dc6d76db023bfc922f67538bf0a2f638ccde0ffb28682c442d0f?d=identicon)[hexageek1337](/maintainers/hexageek1337)

---

Top Contributors

[![hexageek1337](https://avatars.githubusercontent.com/u/23435485?v=4)](https://github.com/hexageek1337 "hexageek1337 (22 commits)")

---

Tags

gatewaygateway-apilibrarypaymentpayment-gatewayphpphp7tripayphppayment gatewaytripaytripay-librarypayment-library

### Embed Badge

![Health badge](/badges/hexageek1337-tripay-library/health.svg)

```
[![Health](https://phpackages.com/badges/hexageek1337-tripay-library/health.svg)](https://phpackages.com/packages/hexageek1337-tripay-library)
```

###  Alternatives

[creagia/redsys-php

Online payments with Redsys

1837.4k2](/packages/creagia-redsys-php)[creagia/laravel-redsys

Laravel Redsys Payments Gateway

2013.6k](/packages/creagia-laravel-redsys)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
