Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hexageek1337/tripay-library
- Owner: hexageek1337
- License: gpl-3.0
- Created: 2020-12-18T14:18:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-01T13:11:18.000Z (about 3 years ago)
- Last Synced: 2024-10-01T18:10:07.304Z (about 1 month ago)
- Topics: gateway, gateway-api, library, payment, payment-gateway, php, php7, tripay
- Language: PHP
- Homepage: https://denny.my.id/
- Size: 257 KB
- Stars: 9
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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 MerchantSandbox
![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