PHPackages                             fadhila36/pakasir-sdk - 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. fadhila36/pakasir-sdk

ActiveLibrary[Payment Processing](/categories/payments)

fadhila36/pakasir-sdk
=====================

Laravel Package for Pakasir Payment Gateway

v1.0.0(3mo ago)021MITPHPPHP ^8.1CI passing

Since Jan 26Pushed 3mo agoCompare

[ Source](https://github.com/Fadhila36/pakasir-sdk)[ Packagist](https://packagist.org/packages/fadhila36/pakasir-sdk)[ RSS](/packages/fadhila36-pakasir-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Pakasir Payment Gateway
=======================

[](#pakasir-payment-gateway)

[![Pakasir Logo](https://raw.githubusercontent.com/zeative/pakasir-sdk/main/media/pakasir-gap.png)](https://raw.githubusercontent.com/zeative/pakasir-sdk/main/media/pakasir-gap.png)

SDK Laravel ringan untuk integrasi pembayaran digital Indonesia [pakasir.com](https://app.pakasir.com). Dukung QRIS, Virtual Account multi-bank &amp; PayPal dengan kalkulasi fee otomatis.

[![Packagist Version](https://camo.githubusercontent.com/3f31096999f33248c7b7dce00544644eb148de168f2648ea78b2ffcf2d1e436f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66616468696c6133362f70616b617369722d73646b2e737667)](https://packagist.org/packages/fadhila36/pakasir-sdk)[![GitHub Code Size](https://camo.githubusercontent.com/6875b84ce99cdfa3a782b5f1f2a59eec7c7def406c4a981867536e60be01a6fc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f66616468696c6133362f70616b617369722d73646b)](https://github.com/fadhila36/pakasir-sdk)[![PHP](https://camo.githubusercontent.com/9847427b3ad37d5f2f3122f63983977e1b0ab038e06a24272d8c4514725c11a0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d626c75653f7374796c653d666c61742d737175617265266c6f676f3d706870)](https://github.com/fadhila36/pakasir-sdk)[![GitHub License](https://camo.githubusercontent.com/8875ded4bee6701d37f89bf94979e69f194f5133db75250fe6902c86245a5d5e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f66616468696c6133362f70616b617369722d73646b)](https://github.com/fadhila36/pakasir-sdk)[![GitHub Stars](https://camo.githubusercontent.com/1ef96018af86b13231d1ed28b7eaff0f45ee9289c1ee32e4d629652d25ae9796/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f66616468696c6133362f70616b617369722d73646b)](https://github.com/fadhila36/pakasir-sdk)

[Installation](#-installation) · [Quick Start](#-quick-start) · [Configuration](#-configuration) · [Payment Methods](#-payment-methods) · [API Reference](#-api-reference) · [Documentation](#-documentation)

📚 Documentation
---------------

[](#-documentation)

- [Panduan Integrasi Lengkap (Tutorial)](docs/INTEGRATION.md)
- [Panduan Development &amp; Kontribusi](docs/DEVELOPMENT.md)

📦 Installation
--------------

[](#-installation)

Requires PHP 8.1+

Install `fadhila36/pakasir-sdk` using composer:

```
composer require fadhila36/pakasir-sdk
```

⚡ Quick Start
-------------

[](#-quick-start)

### Using Enum (Recommended)

[](#using-enum-recommended)

```
use Fadhila36\Pakasir\Enums\PaymentMethod;
use Fadhila36\Pakasir\Facades\Pakasir;

// Create QRIS Payment
$transaction = Pakasir::createPayment(
    PaymentMethod::QRIS,
    'ORDER-' . time(),
    10000,
    'https://yourwebsite.com/callback' // Optional Redirect URL
);

print_r($transaction);
```

### Using String

[](#using-string)

```
$transaction = Pakasir::createPayment('qris', 'ORDER-123', 10000);
```

🛠️ Configuration
----------------

[](#️-configuration)

Publish the config file:

```
php artisan vendor:publish --provider="Fadhila36\Pakasir\PakasirServiceProvider" --tag="config"
```

Then add your configuration to `.env`:

```
PAKASIR_PROJECT=your-slug
PAKASIR_API_KEY=your-api-key
```

💰 Payment Methods
-----------------

[](#-payment-methods)

Supported methods in `Fadhila36\Pakasir\Enums\PaymentMethod`:

MethodCodeFeeAll Methods`all`VariesQRIS`qris`0.7% - 1%PayPal`paypal`1% (min Rp3.000)BNI VA`bni_va`Rp3.500BRI VA`bri_va`Rp3.500CIMB Niaga VA`cimb_niaga_va`Rp3.500Maybank VA`maybank_va`Rp3.500Permata VA`permata_va`Rp3.500BNC VA`bnc_va`Rp3.500ATM Bersama VA`atm_bersama_va`Rp3.500Sampoerna VA`sampoerna_va`Rp2.000Artha Graha VA`artha_graha_va`Rp2.000*See `PaymentMethod` Enum for full list.*

📖 API Reference
---------------

[](#-api-reference)

### 1. Create Payment

[](#1-create-payment)

Trigger API request to create a transaction.

```
Pakasir::createPayment(
    string|PaymentMethod $method,
    string $orderId,
    int|float $amount,
    ?string $redirectUrl = null
): array
```

### 2. Get Payment Data

[](#2-get-payment-data)

Get full payment details locally (fee calculation, expiration, URL) **without** calling the API (except for `createPayment` usage).

```
Pakasir::getPaymentData(
    string|PaymentMethod $method,
    string $orderId,
    int|float $amount,
    ?string $redirectUrl = null
): array
```

### 3. Get Payment URL

[](#3-get-payment-url)

Shortcut to get just the payment URL.

```
$url = Pakasir::getPaymentUrl(PaymentMethod::QRIS, 'ORD-01', 50000);
```

### 4. Check Status

[](#4-check-status)

Check payment status from API.

```
$status = Pakasir::detailPayment('ORD-01', 50000);
```

### 5. Simulation (Sandbox)

[](#5-simulation-sandbox)

Simulate logic for testing.

```
Pakasir::simulationPayment('ORD-01', 50000);
```

🤝 Contributing
--------------

[](#-contributing)

Contributions are welcome! Please follow these steps:

1. Fork the repository.
2. Create new branch: `git checkout -b feature/my-feature`.
3. Commit your changes: `git commit -m 'Add some feature'`.
4. Push to the branch: `git push origin feature/my-feature`.
5. Open Pull Request.

📜 License
---------

[](#-license)

Distributed under the **MIT License**. See [`LICENSE`](LICENSE) for details.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance80

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

104d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5e26d7d662a48d66c573ec3f6bec174a1ab1891f4af26b1b2f9fd423d1a0dd37?d=identicon)[Fadhila36](/maintainers/Fadhila36)

---

Top Contributors

[![Fadhila36](https://avatars.githubusercontent.com/u/37483304?v=4)](https://github.com/Fadhila36 "Fadhila36 (3 commits)")

---

Tags

indonesialaravelpakasirpayment-gatewayphpsdkphplaravelsdklaravel-packageapi clientpayment gatewayindonesiafintechpakasir

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/fadhila36-pakasir-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/fadhila36-pakasir-sdk/health.svg)](https://phpackages.com/packages/fadhila36-pakasir-sdk)
```

###  Alternatives

[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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