PHPackages                             reactmore/tripay-payment-gateway - 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. reactmore/tripay-payment-gateway

ActiveLibrary

reactmore/tripay-payment-gateway
================================

Client API Tripay Unofficial

2.0.0(4y ago)122MITPHPPHP ^7.0 | ^8.0

Since Sep 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/reactmore/tripay-payment-gateway)[ Packagist](https://packagist.org/packages/reactmore/tripay-payment-gateway)[ RSS](/packages/reactmore-tripay-payment-gateway/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

Tripay Payment Gateway Client Library
=====================================

[](#tripay-payment-gateway-client-library)

[![Latest Stable Version](https://camo.githubusercontent.com/b9b6c47cd4c548b4e58796ac4b178b46bd859d28b604964667350967ecea14e1/687474703a2f2f706f7365722e707567782e6f72672f72656163746d6f72652f7472697061792d7061796d656e742d676174657761792f76)](https://packagist.org/packages/reactmore/tripay-payment-gateway) [![License](https://camo.githubusercontent.com/22d74a3970f0450a7a30dfd1a006e0f9d039b926005d2326a546728d233ca77c/687474703a2f2f706f7365722e707567782e6f72672f72656163746d6f72652f7472697061792d7061796d656e742d676174657761792f6c6963656e7365)](https://packagist.org/packages/reactmore/tripay-payment-gateway) [![Total Downloads](https://camo.githubusercontent.com/d8cbdef6cb1c554cd2fcd50e6b23010c288145de566655bb728f7fb3b1d4bbe3/687474703a2f2f706f7365722e707567782e6f72672f72656163746d6f72652f7472697061792d7061796d656e742d676174657761792f646f776e6c6f616473)](https://packagist.org/packages/reactmore/tripay-payment-gateway)

For details please visit Official [Documentation](https://payment.tripay.co.id/developer).

Instalation
-----------

[](#instalation)

```
composer require reactmore/tripay-payment-gateway

```

Configuration
-------------

[](#configuration)

```
require __DIR__ . '/vendor/autoload.php';

use Reactmore\Tripay\Main;

$data = new Main([
    'apiKey' => 'Your-Apikey',
    'privateKey' => 'Your-Private-Key',
    'merchantCode' => 'Your Merchant',
    'stage' => 'sandbox or Productions'
]);

$init = $data->init()->getPayment();

// Payload Must Array
$payload = ['code' => 'BRIVA'];

echo '';
print_r($init->getInstructions($payload));
echo '';
```

If you are using Dot ENV you can add a Field in env.example and only need to call the main class

```
require __DIR__ . '/vendor/autoload.php';

use Reactmore\Tripay\Main;

$data = new Main();

$init = $data->init()->initMerchant();

// Payload Must Array
$payload = ['code' => 'BRIVA'];

echo '';
print_r($init->instructions()->get($payload));
echo '';
```

Callback Handler

```
