flutter_phajay_package 1.1.2 copy "flutter_phajay_package: ^1.1.2" to clipboard
flutter_phajay_package: ^1.1.2 copied to clipboard

Flutter SDK for Phajay Payment Gateway. Generate QR payments and listen for status updates using the Phajay payment API and socket events.

Flutter Phajay Package #

Flutter SDK for Phajay Payment Gateway.

A lightweight and production-ready Flutter SDK for generating QR payments and listening real-time payment status via WebSocket.

This package is designed to be simple, fast, and easy to integrate into any Flutter application.


✨ Features #

  • QR generation (BCEL, LDB)
  • Real-time payment status via WebSocket
  • Stream-based payment event listener
  • Async wait for payment result
  • Clean and simple SDK API
  • Production-ready architecture

📦 Installation #

dependencies:
  flutter_phajay_package: ^1.1.2

🚀 Import #

import 'package:flutter_phajay_package/flutter_phajay_package.dart';

💳 Generate QR #

final client = PhajayClient(
  secretKey: 'YOUR_SECRET_KEY',
);

final qr = await client.createQr(
  bank: BankType.bcel,
  amount: 100000,
);

📡 Listen Payment #

client.paymentStream.listen((event) {
  if (event.status == PaymentStatus.success) {
    print('Payment Success');
  }
});

⏳ Wait Payment #

await client.waitForPayment();

👨‍💻 Credits #

Developed by: Sorng Sdr

Facebook: https://www.facebook.com/msorng.saiydala.la


1
likes
130
points
86
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter SDK for Phajay Payment Gateway. Generate QR payments and listen for status updates using the Phajay payment API and socket events.

Repository (GitHub)
View/report issues

Topics

#payment #qr #websocket #flutter #phajay-websocket

License

unknown (license)

Dependencies

dio, flutter, socket_io_client

More

Packages that depend on flutter_phajay_package