hyperpay 0.0.1-alpha copy "hyperpay: ^0.0.1-alpha" to clipboard
hyperpay: ^0.0.1-alpha copied to clipboard

discontinued
outdated

A Flutter plugin to wrap HyperPay SDK for iOS and Android.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:hyperpay/hyperpay.dart';
import 'package:hyperpay_example/constants.dart';
import 'package:hyperpay_example/endpoint_setup.dart';
import 'package:hyperpay_example/checkout_view.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    setup();
    super.initState();
  }

  setup() async {
    await HyperpayPlugin.instance.setup(
      config: TestConfig(),
      checkoutEndpoint: checkoutEndpoint,
      statusEndpoint: statusEndpoint,
    );
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: CheckoutView(),
    );
  }
}
34
likes
0
pub points
30%
popularity

Publisher

verified publishernyartech.com

A Flutter plugin to wrap HyperPay SDK for iOS and Android.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on hyperpay