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

discontinued
outdated

A plugin to wrap HyperPay mobile SDK for iOS and Android, used to accept payments in Flutter apps using HyperPay Payments Gateway.

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
points
23
downloads

Publisher

verified publishernyartech.com

Weekly Downloads

A plugin to wrap HyperPay mobile SDK for iOS and Android, used to accept payments in Flutter apps using HyperPay Payments Gateway.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on hyperpay