PHPackages                             krisn/howtopay - 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. krisn/howtopay

ActiveLibrary[Payment Processing](/categories/payments)

krisn/howtopay
==============

This package contains payment list with intruction to pay

v1.0.0(4y ago)229MITPHP

Since Nov 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/otnansirk/how-to-pay)[ Packagist](https://packagist.org/packages/krisn/howtopay)[ RSS](/packages/krisn-howtopay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![drawing](https://raw.githubusercontent.com/krisnantobi/how-to-pay/master/src/assets/logo.png)](https://raw.githubusercontent.com/krisnantobi/how-to-pay/master/src/assets/logo.png)

[![GitHub release (latest SemVer)](https://camo.githubusercontent.com/7fcbca9b5489065f340fb2a2c1bb12745cbe3aeecba652b27d78c5dfc06afb58/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6b7269736e616e746f62692f686f772d746f2d7061793f7374796c653d666c61742d737175617265)](https://github.com/krisnantobi/how-to-pay)

### Features

[](#features)

- [List of payment methods with icon](#list-of-payment-methods-with-icon)
- [Group the list of payment methods by type](#group-the-list-of-payment-methods-by-type)
- [Payment instructions how to pay with the selected payment method](#payment-instructions-how-to-pay)

Installation
------------

[](#installation)

```
composer require krisn/howtopay
```

Then import asset.

```
php artisan vendor:publish --tag=public --force
```

How to use
----------

[](#how-to-use)

### You can use facade

[](#you-can-use-facade)

```
use Krisn\HowToPay\Facades\HowToPay;
```

### List of payment methods with icon

[](#list-of-payment-methods-with-icon)

```
HowToPay::payMethods();
```

Return

```
[
    {
        "id": "kartuprakerja",
        "name": "Kartu Prakerja",
        "method": "kartu_prakerja",
        "icon": "http://localhost:8000/vendor/howtopay/banks/icons/Kartuprakerja.png"
    },
    {
        "id": "bca",
        "name": "BCA Virtual Account",
        "method": "bank_transfer",
        "icon": "http://localhost:8000/vendor/howtopay/banks/icons/Bca.png"
    },
    {
        "id": "mandiri",
        "name": "Mandiri Virtual Account",
        "method": "bank_transfer",
        "icon": "http://localhost:8000/vendor/howtopay/banks/icons/Mandiri.png"
    }
]
```

### Group the list of payment methods by type

[](#group-the-list-of-payment-methods-by-type)

```
HowToPay::payMethodGroups();
```

Return

```
{
    "kartuprakerja": {
        "label": "Kartu Prakerja",
        "items": [
            {
                "id": "kartuprakerja",
                "name": "Kartu Prakerja",
                "method": "kartu_prakerja",
                "icon": "http://localhost:8000/vendor/howtopay/banks/icons/Kartuprakerja.png"
            }
        ]
    },
    "virtualaccount": {
        "label": "Virtual Account",
        "items": [
            {
                "id": "bca",
                "name": "BCA Virtual Account",
                "method": "bank_transfer",
                "icon": "http://localhost:8000/vendor/howtopay/banks/icons/Bca.png"
            },
            {
                "id": "mandiri",
                "name": "Mandiri Virtual Account",
                "method": "bank_transfer",
                "icon": "http://localhost:8000/vendor/howtopay/banks/icons/Mandiri.png"
            }
        ]
    },
    "creditcard": {
        "label": "Credit Card",
        "items": [
            {
                "id": "cc",
                "name": "Kartu Kredit",
                "method": "credit_card",
                "icon": "http://localhost:8000/vendor/howtopay/banks/icons/Mastercard.png"
            }
        ]
    }
}
```

### Payment instructions how to pay

[](#payment-instructions-how-to-pay)

```
HowToPay::howToPay('id');
```

`id` is the payment method id shown in the list of returned payment methods from `HowToPay::paymentMethods()`. See the [Payment methods id](#payment-methods-id) to see the supported payment methods.

Exp:

```
HowToPay::howToPay('bri');
```

```
[
    {
        "label": "Transfer via ATM",
        "items": [
            "Pilih menu utama, pilih Transaksi Lain.",
            "Pilih Pembayaran.",
            "Pilih Lainnya.",
            "Pilih BRIVA.",
            "Masukkan Nomor BRIVA pelanggan dan pilih Benar.",
            "Jumlah pembayaran, nomor BRIVA dan nama merchant akan muncul pada halaman konfirmasi pembayaran. Jika informasi yang dicantumkan benar, pilih Ya.",
            "Pembayaran telah selesai. Simpan bukti pembayaran Anda."
        ]
    },
    {
        "label": "Transfer via Internet Banking",
        "items": [
            "Masuk pada Internet Banking BRI.",
            "Pilih menu Pembayaran & Pembelian.",
            "Pilih sub menu BRIVA.",
            "Masukkan Nomor BRIVA.",
            "Jumlah pembayaran, nomor pembayaran, dan nama merchant akan muncul pada halaman konfirmasi pembayaran. Jika informasi yang dicantumkan benar, pilih Kirim.",
            "Masukkan password dan mToken, pilih Kirim.",
            "Pembayaran telah selesai. Untuk mencetak bukti transaksi, pilih Cetak."
        ]
    },
    {
        "label": "Transfer via Mobile Banking",
        "items": [
            "Masuk ke dalam aplikasi BRI Mobile, pilih Mobile Banking BRI.",
            "Pilih Pembayaran, lalu pilih BRIVA.",
            "Masukkan nomor BRIVA.",
            "Jumlah pembayaran, nomor pembayaran, dan nama merchant akan muncul pada halaman konfirmasi pembayaran. Jika informasi yang dicantumkan benar, pilih Continue.",
            "Masukkan Mobile Banking BRI PIN, pilih Ok..",
            "Pembayaran telah selesai. Simpan notifikasi sebagai bukti pembayaran."
        ]
    }
]
```

Currently support.
------------------

[](#currently-support)

### Payment methods id

[](#payment-methods-id)

- "kartuprakerja"
- "bca"
- "mandiri"
- "bri"
- "bni"
- "permata"
- "cimb"
- "maybank"
- "danamon"
- "cc"
- "gopay"
- "linkaja"
- "jenius"
- "kredivo"
- "shopeepay"
- "bcaklikpay"
- "bcaklikbca"
- "epaybri"
- "cimbclicks"
- "danamononline"
- "akulaku"
- "qris"

### payment methods

[](#payment-methods)

- "kartu\_prakerja"
- "nicepay\_va"
- "credit\_card"
- "gopay"
- "linkaja"
- "jenius"
- "kredivo"
- "shopeepay"
- "bca\_klikpay"
- "bca\_klikbca"
- "bri\_epay"
- "cimb\_clicks"
- "danamon\_online"
- "akulaku"
- "qris"

Contributing
------------

[](#contributing)

Thank you for considering contributing to the How To Pay.

License
-------

[](#license)

The HowToPay library is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

1633d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed75e1d144306f1723ecced0981c684ee7702fe4cb3ab538139b04d6f239d471?d=identicon)[otnansirk](/maintainers/otnansirk)

---

Top Contributors

[![otnansirk](https://avatars.githubusercontent.com/u/30102523?v=4)](https://github.com/otnansirk "otnansirk (8 commits)")

---

Tags

laravel-package

### Embed Badge

![Health badge](/badges/krisn-howtopay/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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