Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hexageek1337/tripay-library

Library untuk TriPay (Payment Gateway Lokal Indonesia) menggunakan bahasa pemrograman PHP versi 7 dan database MariaDB
https://github.com/hexageek1337/tripay-library

gateway gateway-api library payment payment-gateway php php7 tripay

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

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

# Installation

install with composer
```bash
$ composer require hexageek1337/tripay-library
```

manual install with git
```bash
$ 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

Sandbox
![Sandbox Merchant Key](https://github.com/hexageek1337/TriPay-Library/blob/main/tripaykey_sandbox.PNG?raw=true)
Production
![Production Merchant Key](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
// 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