flutter_phajay 0.0.13 copy "flutter_phajay: ^0.0.13" to clipboard
flutter_phajay: ^0.0.13 copied to clipboard

A Flutter library for showing PhaJay payment link screen.

flutter_phajay #

PhaJay Flutter SDK

The PhaJay Flutter SDK lets you create smooth and secure payment experiences inside native Android and iOS apps built with Flutter. It provides powerful, fully customizable UI screens and components that work out-of-the-box to collect and process users’ payment details through PhaJay’s multi-bank and QR payment network. Additionally, it supports advanced features like real-time transaction updates and multi-platform compatibility, including web, macOS, Linux, and Windows.


Flutter-sdk-1

✨ Features #

  • Open a payment link inside your app
  • Easy to use with a single widget
  • Real-time transaction updates
  • Multi-platform support (Android, iOS, Web, macOS, Linux, Windows)
  • Secure and reliable payment processing
  • Fully customizable UI components

📦 Installation #

Add this to your pubspec.yaml:

dependencies:
  flutter_phajay: ^X.X.X

Run the following command to fetch the package:

flutter pub get

🚀 Usage #

Step 1: Import the Library #

In your Dart file, import the flutter_phajay library:

import 'package:flutter_phajay/flutter_phajay.dart';

Step 2: Add the PaymentLinkScreen Widget #

To integrate the PaymentLinkScreen widget, use the following code snippet:

PaymentLinkScreen(
  amount: 100, // Replace with the desired amount
  description: "Test Payment", // Replace with your payment description
  publicKey: r"{YOUR_SECRET_KEY}", // Replace with your secret key
);

Example #

Here is a complete example of how to use the PaymentLinkScreen widget in your Flutter app:

import 'package:flutter/material.dart';
import 'package:flutter_phajay/flutter_phajay.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Phajay Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const PaymentExampleScreen(),
    );
  }
}

class PaymentExampleScreen extends StatelessWidget {
  const PaymentExampleScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Payment Example'),
      ),
      body: Center(
        child: PaymentLinkScreen(
          amount: 100,
          description: "Test Payment",
          publicKey: r"{YOUR_SECRET_KEY}",
        ),
      ),
    );
  }
}

📖 Documentation #


🛠️ Notes #

  • Replace {YOUR_SECRET_KEY} with your actual secret key. To retrieve your secret key, please refer to the PhaJay Registration Documentation.
  • Ensure that your app has the necessary permissions and configurations to connect to the payment gateway.
  • Refer to the official documentation for more advanced usage and customization options.

📞 Support #

If you encounter any issues or have questions, feel free to reach out to the maintainers of this library.

1
likes
0
points
85
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter library for showing PhaJay payment link screen.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, qr_flutter, socket_io_client, url_launcher

More

Packages that depend on flutter_phajay