PHPackages                             qoin/qoin-php - 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. qoin/qoin-php

ActiveLibrary[Payment Processing](/categories/payments)

qoin/qoin-php
=============

PHP Wrapper for Qoin Payment API

0.0.2(5y ago)010PHPPHP &gt;=5.5

Since Nov 2Pushed 5y agoCompare

[ Source](https://github.com/Qoin-Digital-Indonesia/qoin-php)[ Packagist](https://packagist.org/packages/qoin/qoin-php)[ Docs](https://www.qoin.id)[ RSS](/packages/qoin-qoin-php/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Qoin-PHP
========

[](#qoin-php)

Install via Composer
--------------------

[](#install-via-composer)

`composer require qoin/qoin-php`

Usage
-----

[](#usage)

### 1. BRI VA

[](#1-bri-va)

#### a. Create Order

[](#a-create-order)

```
(new \Qoin\BriVa)
    ->setEnvironment('sandbox') // sandbox || production
    ->setPrivateKey('')
    ->setSecretKey('')
    ->createOrder([
        'MerchantNumber' => '',
        'ReferenceNumber' => '',
        'Amount' => 21000,
        'Currency' => 'IDR',
        'Description' => json_encode([
            ['Item' => 1, 'Desc' => 'T-Shirt', 'Amount' => 15000],
            ['Item' => 2, 'Desc' => 'Admin', 'Amount' => 5000],
            ['Item' => 3, 'Desc' => 'Shipping', 'Amount' => 1000],
        ]), // format: JSON string
        'UserName' => 'Giovanni Reinard',
        'UserContact' => '628123456789;giovanni@loyalto.id', // format: phone_number;email_address
        'RequestTime' => date(DateTime::ISO8601)
    ]);

```

#### b. Get Status

[](#b-get-status)

```
(new \Qoin\BriVa)
    ->setEnvironment('sandbox') // sandbox || production
    ->setPrivateKey('')
    ->setSecretKey('')
    ->getStatus([
        'OrderNumber' => '',
        'ReqTime' => date(DateTime::ISO8601)
    ]);

```

### 2. Credit Card

[](#2-credit-card)

#### a. Create Order

[](#a-create-order-1)

```
(new \Qoin\CreditCard)
    ->setEnvironment('sandbox') // sandbox || production
    ->setPrivateKey('')
    ->setSecretKey('')
    ->createOrder([
        'reference_no' => '',
        'account_number' => '4000000000000002',
        'exp_month' => '12',
        'exp_year' => '2020',
        'card_cvn' => '123',
        'amount' => 25000,
        'request_time' => date('Y-m-d H:i:s'),
        'merchant_code' => ''
    ]);

```

#### b. Charge

[](#b-charge)

```
(new \Qoin\CreditCard)
    ->setEnvironment('sandbox') // sandbox || production
    ->setPrivateKey('')
    ->charge([
        'order_no' => ''
    ]);

```

#### c. Get Status

[](#c-get-status)

```
(new \Qoin\CreditCard)
    ->setEnvironment('sandbox') // sandbox || production
    ->setPrivateKey('')
    ->setSecretKey('')
    ->setReferenceNumber('')
    ->getStatus([
        'MerchantCode' => '',
        'OrderNo' => '',
        'ReqTime' => date('Y-m-d H:i:s')
    ]);

```

### 3. OVO

[](#3-ovo)

#### a. Create Order

[](#a-create-order-2)

```
(new \Qoin\Ovo)
    ->setEnvironment('sandbox') // sandbox || production
    ->setPrivateKey('')
    ->setSecretKey('')
    ->createOrder([
        'Amount' => 10,
        'Currency' => 'IDR',
        'Description' => json_encode([
            ['Item' => 1, 'Desc' => 'T-Shirt', 'Amount' => 15000],
            ['Item' => 2, 'Desc' => 'Admin', 'Amount' => 5000],
            ['Item' => 3, 'Desc' => 'Shipping', 'Amount' => 1000],
        ]), // format: JSON string,
        'ReqTime' => date('Y-m-d H:i:s'),
        'MerchantCode' => '',
        'ReferenceNo' => '',
        'CustomerName' => 'Giovanni Reinard',
        'CustomerPhone' => '08123456789',
        'CustomerEmail' => 'giovanni@loyalto.id'
    ]);

```

#### b. Get Status

[](#b-get-status-1)

```
(new \Qoin\Ovo)
    ->setEnvironment('sandbox') // sandbox || production
    ->setPrivateKey('')
    ->setSecretKey('')
    ->getStatus([
        'RequestTime' => date('Y-m-d H:i:s'),
        'MerchantCode' => '',
        'ReferenceNo' => ''
    ]);

```

### 4. LinkAja

[](#4-linkaja)

#### a. Create Order

[](#a-create-order-3)

```
(new \Qoin\LinkAja)
    ->setEnvironment('sandbox') // sandbox || production
    ->setPrivateKey('')
    ->setSecretKey('')
    ->createOrder([
        'Amount' => 10,
        'Currency' => 'IDR',
        'Description' => json_encode([
            ['Item' => 1, 'Desc' => 'T-Shirt', 'Amount' => 15000],
            ['Item' => 2, 'Desc' => 'Admin', 'Amount' => 5000],
            ['Item' => 3, 'Desc' => 'Shipping', 'Amount' => 1000],
        ]), // format: JSON string,
        'ReqTime' => date('Y-m-d H:i:s'),
        'MerchantCode' => '',
        'ReferenceNo' => '',
        'CustomerName' => 'Giovanni Reinard',
        'CustomerPhone' => '08123456789',
        'CustomerEmail' => 'giovanni@loyalto.id'
    ]);

```

#### b. Get Status

[](#b-get-status-2)

```
(new \Qoin\LinkAja)
    ->setEnvironment('sandbox') // sandbox || production
    ->setPrivateKey('')
    ->setSecretKey('')
    ->getStatus([
        'RequestTime' => date('Y-m-d H:i:s'),
        'MerchantCode' => '',
        'ReferenceNo' => ''
    ]);

```

### 5. Snap

[](#5-snap)

#### - Create Order

[](#--create-order)

```
(new \Qoin\Snap)
    ->setEnvironment('sandbox') // sandbox || production
    ->setPrivateKey('')
    ->setSecretKey('')
    ->createOrder([
        'merchantCode' => '',
        'linkPayment' => '12345',
        'referenceNo' => '',
        'expiredDate' => '',
        'requestTime' => date('Y-m-d H:i:s'),
        'currency' => 'IDR',
        'paymentMethod' => '',
        'paymentChannel' => '',
        'customerName' => 'Giovanni Reinard',
        'customerPhone' => '628123456789',
        'customerEmail' => 'giovanni@loyalto.id',
        'product' => [
            ['Item' => 1, 'Desc' => 'T-Shirt', 'Amount' => 15000],
            ['Item' => 2, 'Desc' => 'Admin', 'Amount' => 5000],
            ['Item' => 3, 'Desc' => 'Shipping', 'Amount' => 1000],
        ], // format: array
        'totalPrice' => 21000
    ]);

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2021d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e3b501dffea4da435589976cdb086d044feef04c3a710f89550585457101541?d=identicon)[qoin](/maintainers/qoin)

---

Top Contributors

[![giovannireinard](https://avatars.githubusercontent.com/u/73808815?v=4)](https://github.com/giovannireinard "giovannireinard (2 commits)")

---

Tags

composer-packagepayment-gatewayphp-libraryqoin

### Embed Badge

![Health badge](/badges/qoin-qoin-php/health.svg)

```
[![Health](https://phpackages.com/badges/qoin-qoin-php/health.svg)](https://phpackages.com/packages/qoin-qoin-php)
```

###  Alternatives

[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
