basispaysdk 1.0.3
basispaysdk: ^1.0.3 copied to clipboard

Flutter SDK kit for payment gateway transactions within India

BasisPay-Flutter-KIT #

A Flutter plugin to use the BasisPay Payment gateway kit for accepting online payments in Flutter app.

INTRODUCTION #

This document describes the steps for integrating Basispay online payment gateway Flutter SDK kit.This payment gateway performs the online payment transactions with less user effort. It receives the payment details as input and handles the payment flow. Finally returns the payment response to the user. User has to import the framework manually into their project for using it

Requirements #

o iOS 11.0+ o Xcode 11.0+ o Swift 5.0+ o Android min SDK - 21

First of all get Credentials from BasisPay #

Plugin will only work with API Keys

Start Payment #

  Future<void> initPlatformState() async {
      Map<String, dynamic> paymentRequestDictionary = {
        "orderId": "8349574023489",
              "amount": "6000",
              "currency": "INR",
              "description": "YYYYYY",
              "name": "XXXXXXX",
              "email": "YYYYYYY",
              "phone": "ZZZZZZZZ",
              "addressLine1": "XXXXX",
              "addressLine2": "XXXXX",
              "city": "XXXXX",
              "state": "YYYYY",
              "country": "XXXXX",
              "zipCode": "YYYYY",
              "udf1": "udf1",
              "udf2": "udf2",
              "udf3": "udf3",
              "udf4": "Testing4",
              "udf5": "Testing5",
      };
      try {
        var response = Basispaysdk.startTransaction(
            "[API-KEY From Basispay team]",
            "[SALT-KEY From Basispay team]",
            "[YOUR- RETURN URL to get the response]",
           to check  true,
            paymentRequestDictionary,
            false);
        response.then((value) {
          print(value);
        }).catchError((onError) {
          if (onError is PlatformException) {
            setState(() {
              print(onError.message + " \n  " + onError.details.toString());
            });
          } else {
            setState(() {
              print(onError.toString());
            });
          }
        });
      } catch (err) {
        print(err.message);
      }
    }
  

Author #

BasisPay, basispay@gmail.com

License #

BasisPay is available under the MIT license. See the LICENSE file for more info.

0
likes
110
pub points
45%
popularity

Publisher

Unknown

Flutter SDK kit for payment gateway transactions within India

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on basispaysdk