Download the PHP package fadhila36/pakasir-sdk without Composer

On this page you can find all versions of the php package fadhila36/pakasir-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pakasir-sdk

Pakasir Payment Gateway Laravel SDK

Pakasir Logo

Sebuah SDK Laravel modern, modular, dan type-safe untuk mengintegrasikan layanan gerbang pembayaran (payment gateway) Pakasir ke aplikasi Anda.

SDK ini mendukung QRIS, Virtual Account multi-bank (BNI, BRI, CIMB, Permata, dll), serta PayPal dengan kalkulasi biaya (fee) otomatis, timeout/retry otomatis, logging, Laravel Events, dan sistem verifikasi Webhook terproteksi.

Packagist Version GitHub Code Size PHP GitHub License GitHub Stars


⚡ Fitur Unggulan


📦 Instalasi

Pastikan server Anda menggunakan PHP 8.3+ dan aplikasi Anda berbasis Laravel 11.0 s/d 13.0+.

Jalankan perintah Composer berikut untuk menginstal:


🛠️ Konfigurasi

  1. Publikasikan file konfigurasi package ke aplikasi host Anda:

  2. Atur kredensial proyek Pakasir Anda di file .env:

🚀 Penggunaan Cepat

1. Membuat Transaksi Pembayaran

Gunakan PaymentMethod Enum untuk kenyamanan autocompletion dan validasi otomatis:


2. Memproses & Memverifikasi Webhook Secara Aman

Untuk menghindari eksploitasi webhook palsu, gunakan fitur verifyWebhook() yang akan memvalidasi data dan memverifikasi langsung ke server resmi Pakasir:


💰 Pilihan Metode Pembayaran (PaymentMethod)

SDK menyediakan Enum lengkap dengan kalkulasi biaya (fee) dan validasi nominal minimum terintegrasi:

Method Enum Case Code Estimasi Fee
All Methods PaymentMethod::ALL all -
QRIS PaymentMethod::QRIS qris 0.7% - 1%
PayPal PaymentMethod::PAYPAL paypal 1% (min 3k)
BNI VA PaymentMethod::BNI_VA bni_va Rp3.500
BRI VA PaymentMethod::BRI_VA bri_va Rp3.500
CIMB Niaga VA PaymentMethod::CIMB_NIAGA_VA cimb_niaga_va Rp3.500
Maybank VA PaymentMethod::MAYBANK_VA maybank_va Rp3.500
Permata VA PaymentMethod::PERMATA_VA permata_va Rp3.500
BNC VA PaymentMethod::BNC_VA bnc_va Rp3.500
ATM Bersama VA PaymentMethod::ATM_BERSAMA_VA atm_bersama_va Rp3.500
Sampoerna VA PaymentMethod::SAMPOERNA_VA sampoerna_va Rp2.000
Artha Graha VA PaymentMethod::ARTHA_GRAHA_VA artha_graha_va Rp2.000

📖 API Reference

1. createPayment()

Membuat transaksi baru secara realtime di server Pakasir.

2. detailPayment()

Mengambil status detail transaksi terkini dari server Pakasir.

3. cancelPayment()

Membatalkan tagihan transaksi yang sedang aktif/pending.

4. simulationPayment()

Melakukan simulasi pembayaran sukses (khusus mode Sandbox/testing).

5. verifyWebhook()

Memparse dan memvalidasi keabsahan data webhook masukan.


📜 Lisensi

Didistribusikan di bawah lisensi MIT License. Lihat dokumen LICENSE untuk informasi lebih lanjut.


All versions of pakasir-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fadhila36/pakasir-sdk contains the following files

Loading the files please wait ...