PHPackages                             nexteam/trivel - 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. [API Development](/categories/api)
4. /
5. nexteam/trivel

ActiveLibrary[API Development](/categories/api)

nexteam/trivel
==============

Unofficial Tripay Wrapper For Laravel

1.1.0(2y ago)16Apache-2.0PHP

Since Aug 30Pushed 2y agoCompare

[ Source](https://github.com/Nexteam-Indonesia/trivel)[ Packagist](https://packagist.org/packages/nexteam/trivel)[ RSS](/packages/nexteam-trivel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Trivel
------

[](#trivel)

Unofficial [Tripay](https://tripay.co.id/) wrapper for laravel

Maintained by [CV Nexteam Teknologi Indonesia](https://www.nexteam.id/)

### Usage

[](#usage)

- Install it by using command : `composer require nexteam/trivel`
- Add configuration in your `.env` file like this :

```
TRIVEL_BASE_URL="https://tripay.co.id/api-sandbox"
TRIVEL_API_KEY=...
TRIVEL_MERCHANT_CODE=...
TRIVEL_PRIVATE_KEY=...

```

- Add `TrivelServiceProvider` to `config/app.php` :

```
'providers' => ServiceProvider::defaultProviders()->merge([
        // another service provider
        \Nexteam\Trivel\TrivelServiceProvider::class
    ])->toArray(),
```

- Don't forget to publish the `trivel-config` by run command : `php artisan vendor:publish trivel-config`

Example
-------

[](#example)

```
