PHPackages                             tarikhagustia/epayindo - 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. [Payment Processing](/categories/payments)
4. /
5. tarikhagustia/epayindo

ActiveLibrary[Payment Processing](/categories/payments)

tarikhagustia/epayindo
======================

PHP client library for epayindo http://epayindo.com

1.1.1(7y ago)1361MITPHPPHP &gt;=5.6

Since Sep 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tarikhagustia/epayindo)[ Packagist](https://packagist.org/packages/tarikhagustia/epayindo)[ RSS](/packages/tarikhagustia-epayindo/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (15)Used By (0)

Epayindo
========

[](#epayindo)

Epayindo ❤️ PHP!

This is warapper/Library for epayindo () payment gateway, for more information visit documentation page ()

1. Installation
---------------

[](#1-installation)

### 1. Composer Installation

[](#1-composer-installation)

```
composer require tarikhagustia/epayindo "dev-master"

```

2. How to Use
-------------

[](#2-how-to-use)

### 2.1 Create Payment

[](#21-create-payment)

```
$auth = new Auth('MERCHANT_EMAIL', 'MERCHANT_API_KEY');
$payment = new Payment($auth);
$total_amount = 45000;
$payment_data = $payment->createPayment('MERCHANT_USERNAME', 'CLIENT_EMAIL', $total_amount, [
  ['name', 45000,1,45000]
]);

print_r($payment_data);
// for third parameter using this scema
// ['product_name', 'product_price', 'qty', 'total_amount']
// $paymetn_data will return this following object
// stdClass Object
// (
//     [status] => 1
//     [url] => https://my.epayindo.com/payment/pay/B972E201809301024
//     [data] => stdClass Object
//         (
//             [transaction] => stdClass Object
//                 (
//                     [pin] => pgcometsnet12345
//                     [merchant_id] => pgcometsnet
//                     [transaction_id] => B972E201809301024
//                     [account_number] => 1
//                     [item_type] => MISC
//
//                     [basket] => name,45000,1,45000;Fee,6500,1,6500
//                     [actype] => pay
//                 )
//
//             [gross_amount] => 51500
//         )
//
// )
```

### 2.1 Transfer to other epayindo accounts

[](#21-transfer-to-other-epayindo-accounts)

```
