digital_pay 1.0.3 copy "digital_pay: ^1.0.3" to clipboard
digital_pay: ^1.0.3 copied to clipboard

This package allows you to make your payments safely. Designed to make your task easier with a simple widget.

digital_pay #

This package allows you to make your payments safely. Designed to make your task easier with a simple widget.

Features #

  • Paiment via MTN CI

Getting started #

To use this package, add digital_pay as a dependency in your pubspec.yaml file.

Usage #

Minimal example:

    //Launching the checkout request
    DigitalPay.checkout(
            context: context,
            accessToken: "MY_ACCESS_TOKEN",
            amount: 10)
        .then((result) {
          //result of the request
      print(result);
    });

Material App settings:

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

//Secure all hhtp request with [https]
class MyHttpOverrides extends HttpOverrides {
  @override
  HttpClient createHttpClient(context) {
    return super.createHttpClient(context)
      ..badCertificateCallback =
          (X509Certificate cert, String host, int port) => true;
  }
}
//END secure http

//Change your main App
void main() async {
  //intialize http requests
  HttpOverrides.global = MyHttpOverrides();
  return runApp(const MyApp());
}
//END Change
2
likes
110
pub points
0%
popularity

Publisher

unverified uploader

This package allows you to make your payments safely. Designed to make your task easier with a simple widget.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (LICENSE)

Dependencies

country_picker, currency_formatter, flutter, flutter_inappwebview, flutter_spinkit, fluttertoast, html, http, http_parser, mask_text_input_formatter, url_launcher, wc_form_validators

More

Packages that depend on digital_pay