Skip to content

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

License

Notifications You must be signed in to change notification settings

hexageek1337/TriPay-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TriPay-Library

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

Sandbox Sandbox Merchant Key Production Production Merchant Key

  • 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