moyasar_payment 0.0.6 copy "moyasar_payment: ^0.0.6" to clipboard
moyasar_payment: ^0.0.6 copied to clipboard

outdated

Flutter library for Moyasar. Supports Apple Pay, STC Pay and Credit Card.

example/lib/main.dart

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

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
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: InkWell(
            onTap: ()async{
              
              await MoyasarPayment().creditCard(amount: 20.0, publishableKey: 'publishableKey', cardHolderName: 'cardHolderName', cardNumber: 'cardNumber', cvv: 'cvv', expiryManth: 'expiryManth', expiryYear: 'expiryYear', callbackUrl: 'callbackUrl');
            },
            child: Text('gdg'))
        ),
      ),
    );
  }
}
13
likes
0
points
33
downloads

Publisher

verified publishermohammed-dev.com

Weekly Downloads

Flutter library for Moyasar. Supports Apple Pay, STC Pay and Credit Card.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_pay, http

More

Packages that depend on moyasar_payment