fadhila36/pakasir-sdk
Laravel SDK type-safe untuk integrasi Pakasir Payment Gateway: QRIS, Virtual Account multi-bank, dan PayPal. Dilengkapi kalkulasi fee otomatis, timeout/retry, logging, Events, Notifications, serta verifikasi webhook anti-spoofing.
We are thrilled to announce the official release of v2.0.0 of the Pakasir Laravel SDK!
This is a major upgrade that completely modernizes the package codebase to align with PHP 8.3+ and Laravel 11 / 12 / 13+ standards, introducing robust enterprise features, strict type safety, automatic event dispatching, and secure webhook verification.
To adopt v2.0.0, please note the following breaking architectural improvements:
^8.3. PHP 8.1 and 8.2 are no longer supported.^11.0. Laravel 10.0 is no longer supported (EOL).readonly Data Transfer Objects (DTOs) instead of raw associative arrays.
createPayment() returns TransactionCreateResponse DTO.detailPayment(), cancelPayment(), simulationPayment() return TransactionDetailResponse DTO.verifyWebhook() returns WebhookPayload DTO.Since Pakasir webhooks do not support cryptographic signatures, v2.0.0 introduces an automated, highly secure double-check validation. When you invoke verifyWebhook(), the SDK:
We have introduced configurable HTTP client settings in config/pakasir.php to handle flaky networks:
timeout: Set custom connection and response timeouts.retry_attempts / retry_delay: Automatically retry failed requests with modern exponential delay handling.logging_enabled: Real-time logging of all outbound payment streams and inbound responses directly to Laravel logs for debugging.TransactionCreatedTransactionCanceledWebhookReceivedPaymentCompletedPaymentLinkNotification class is included to easily send payment links to your customers via Email or Database notifications.PaymentMethod backed enums with built-in fee logic and minimum transaction amount rules.QRISHelper helper class to analyze, format, and sanitize EMVCo standard QR codes.Fadhila36\Pakasir\Contracts\PakasirInterface to enable full interface binding.declare(strict_types=1) across all components, styled with laravel/pint, and verified green on PHPStan Level 8.composer require fadhila36/pakasir-sdk
```bash
php artisan vendor:publish --provider="Fadhila36\Pakasir\PakasirServiceProvider" --tag="config"
3.⚡** Quick Example**
use Fadhila36\Pakasir\Enums\PaymentMethod;
use Fadhila36\Pakasir\Facades\Pakasir;
// Create a QRIS transaction (Returns a TransactionCreateResponse DTO)
$transaction = Pakasir::createPayment(
PaymentMethod::QRIS,
'ORDER-1001',
50000
);
// Access properties in a type-safe manner
echo $transaction->paymentUrl;
echo $transaction->qrisString;
Full Changelog: https://github.com/Fadhila36/pakasir-sdk/compare/v1.0.0...v2.0.0
🎉 We are excited to announce the first official release of the Pakasir Laravel SDK!
This package provides a lightweight and fluent way to integrate Pakasir Payment Gateway into your Laravel applications.
PaymentMethod Enums for reliable coding.^8.1^10.0 | ^11.0 | ^12.0composer require fadhila36/pakasir-sdk
⚡ Quick Example
use Fadhila36\Pakasir\Enums\PaymentMethod;
use Fadhila36\Pakasir\Facades\Pakasir;
// Create a QRIS transaction
$transaction = Pakasir::createPayment(
PaymentMethod::QRIS,
'ORDER-1001',
50000
);
📜 Documentation Check out the full documentation for more details:
How can I help you explore Laravel packages today?