simple_flutter_apple_pay 0.0.5 icon indicating copy to clipboard operation
simple_flutter_apple_pay: ^0.0.5 copied to clipboard

Simple Flutter Apple Pay

Basic apple pay #

This is basic implemention of apple pay for Flutter.

TODO #

  • better read me
  • payment networks
  • merchant capabilities settings

Example #

Future<void> makePayment() async {
    PaymentResult result;
    PaymentItem paymentItems =
        PaymentItem(label: 'Label', amount: 51.0, isFinal: true);
    try {
      result = await FlutterApplePay.startPayment(
        countryCode: "CZ",
        currencyCode: "CZK",
        paymentNetworks: [PaymentNetwork.visa, PaymentNetwork.mastercard],
        merchantIdentifier: "merchant.example.mcc.cz",
        paymentItems: [paymentItems],
      );
      print(result);
    } on Exception {
      // Exception thrown OS isn't iOS
    }
  }
0
likes
100
pub points
0%
popularity

Publisher

unverified uploader

Simple Flutter Apple Pay

Homepage

Documentation

API reference

License

Icon for licenses.GPL-3.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on simple_flutter_apple_pay