fadhila36/pakasir-sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fadhila36/pakasir-sdk

最新稳定版本:v1.0.0

Composer 安装命令:

composer require fadhila36/pakasir-sdk

包简介

Laravel Package for Pakasir Payment Gateway

README 文档

README

Pakasir Logo

SDK Laravel ringan untuk integrasi pembayaran digital Indonesia pakasir.com. Dukung QRIS, Virtual Account multi-bank & PayPal dengan kalkulasi fee otomatis.

Packagist Version GitHub Code Size PHP GitHub License GitHub Stars

Installation · Quick Start · Configuration · Payment Methods · API Reference · Documentation


📚 Documentation

📦 Installation

Requires PHP 8.1+

Install fadhila36/pakasir-sdk using composer:

composer require fadhila36/pakasir-sdk

⚡ Quick Start

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

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

🛠️ 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

Supported methods in Fadhila36\Pakasir\Enums\PaymentMethod:

Method Code Fee
All Methods all Varies
QRIS qris 0.7% - 1%
PayPal paypal 1% (min Rp3.000)
BNI VA bni_va Rp3.500
BRI VA bri_va Rp3.500
CIMB Niaga VA cimb_niaga_va Rp3.500
Maybank VA maybank_va Rp3.500
Permata VA permata_va Rp3.500
BNC VA bnc_va Rp3.500
ATM Bersama VA atm_bersama_va Rp3.500
Sampoerna VA sampoerna_va Rp2.000
Artha Graha VA artha_graha_va Rp2.000

See PaymentMethod Enum for full list.

📖 API Reference

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

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

Shortcut to get just the payment URL.

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

4. Check Status

Check payment status from API.

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

5. Simulation (Sandbox)

Simulate logic for testing.

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

🤝 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

Distributed under the MIT License. See LICENSE for details.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固