flutter_payment_sdk_unofficial 0.0.1 copy "flutter_payment_sdk_unofficial: ^0.0.1" to clipboard
flutter_payment_sdk_unofficial: ^0.0.1 copied to clipboard

A Flutter Payment SDK Unofficial.

Flutter Payment SDK Unofficial #

If you find this Flutter Payment SDK Unofficial helpful, please consider buying me a coffee to support its development and maintenance:

Buy me a coffee

Welcome to the Flutter Payment SDK Unofficial! This plugin allows Flutter developers to easily integrate with our unofficial payment gateway to process payments in their applications.

Introduction #

This Flutter plugin provides an interface for developers to interact with our unofficial payment gateway. Please note that this plugin is not officially endorsed or supported by the payment gateway provider and should be used with caution.

Getting Started #

To get started with the Flutter Payment SDK Unofficial, follow these simple steps:

Installation #

Add the following line to your pubspec.yaml file to include the plugin in your project:

dependencies:
  flutter_payment_sdk_unofficial: ^0.0.1

Then, run the following command to install the plugin:

flutter pub get

Initialize #

In your Dart code, import the Unofficial Payment Gateway package:

import 'package:flutter_payment_sdk_unofficial/flutter_payment_sdk_unofficial.dart';

To initialize the plugin with your payment gateway credentials, call the initialize method with your API keys:

// Please change to PGWSDKEnvironment.production on release.
FPSDKUnofficial.initialize(PGWSDKEnvironment.sandbox);

Example Code #

Here's an example of how to use the Flutter Payment SDK Unofficial to make a payment:

try {
    final result = await FPSDKUnofficial.pgwPayWithCreditCard(
        '<Payment Token>',
        cardNumber: '4111111111111111',
        expMonth: 12,
        expYear: 2026,
        securityCode: '123',
        name: 'David Billy',
    );

    // Handle the payment response here
    if (result?.data != null) {
      // Example open web from url
      final _url = Uri.parse(result!.data!);
      await launchUrl(_url);
    }
    
} catch (e) {
  // Handle any errors that occurred during the payment process
}

Developer Guidelines #

Here are some important details that developers need to know when using this plugin:

  • This plugin is not officially supported by the payment gateway provider. Use it at your own risk.
  • Ensure that you have the necessary API keys and credentials to use the payment gateway service.
  • Refer to the official documentation of the payment gateway provider for additional information on how to configure and use their services.
  • Make sure to handle errors gracefully and provide a good user experience when dealing with payment failures or exceptions.

Please refer to the official documentation of the payment gateway provider for specific details and guidelines related to their service.

Feedback and Issues #

If you encounter any issues or have suggestions for improving this plugin, please create an issue on our GitHub repository.

License #

This project is licensed under the MIT License.

Happy payment processing with Flutter!

1
likes
120
points
16
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter Payment SDK Unofficial.

Documentation

API reference

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_payment_sdk_unofficial