flutter_phajay_package 1.1.0 copy "flutter_phajay_package: ^1.1.0" to clipboard
flutter_phajay_package: ^1.1.0 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.

This package is ready for public use and exposes the main payment API for QR generation and transaction status listening.

Supports:

  • BCEL QR
  • LDB QR
  • Payment status listening
  • WebSocket/socket-based payment events

Installation #

dependencies:
  flutter_phajay_package: ^1.1.0

Generate QR #

import 'package:flutter_phajay_package/flutter_phajay_package.dart';

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
0
points
86
downloads

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