amwal_pay 0.0.5 copy "amwal_pay: ^0.0.5" to clipboard
amwal_pay: ^0.0.5 copied to clipboard

discontinued
outdated

The AmwalPay Flutter SDK provides a convenient way to integrate AmwalPay payment functionality into your Flutter applications. This documentation will guide you through the process of setting up and u [...]

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:amwal_pay/amwal_pay.dart';
import 'dart:async';

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

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

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

  @override
  Widget build(BuildContext context) {
    AmwalPay amwalPay = AmwalPayBuilder("sandbox-amwal-e53fe88e-0896-4f57-98b4-a8907f73c0c6")
        .countryCode("countryCode")
        .phoneNumber("phoneNumber")
        .build();

    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: ElevatedButton( onPressed: () async {
            await amwalPay.start(100.0);
          },child: const Text("run"),),
        ),
      ),
    );
  }
}
1
likes
0
points
105
downloads

Publisher

unverified uploader

Weekly Downloads

The AmwalPay Flutter SDK provides a convenient way to integrate AmwalPay payment functionality into your Flutter applications. This documentation will guide you through the process of setting up and using the AmwalPay class.

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on amwal_pay

Packages that implement amwal_pay