flutter_apple_pay 0.1.3 copy "flutter_apple_pay: ^0.1.3" to clipboard
flutter_apple_pay: ^0.1.3 copied to clipboard

Porting of Apple Pay (a mobile payment and digital wallet service by Apple Inc) to Flutter.

flutter_google_pay #

pub

Accept Payments with Apple Pay.

Usage #

    import 'package:flutter_apple_pay/flutter_apple_pay.dart';
  
  
    Future<void> makePayment() async {
       dynamic platformVersion;
       PaymentItem paymentItems = PaymentItem(label: 'Label', amount: 51.0);
       try {
         platformVersion = await FlutterApplePay.makePayment(
           countryCode: "US",
           currencyCode: "USD",
           paymentNetworks: [PaymentNetwork.visa, PaymentNetwork.mastercard],
           merchantIdentifier: "merchant.stripeApplePayTest",
           paymentItems: [paymentItems],
         );
         print(platformVersion);
       } on PlatformException {
         platformVersion = 'Failed to get platform version.';
       }
     }

13
likes
30
pub points
13%
popularity

Publisher

unverified uploader

Porting of Apple Pay (a mobile payment and digital wallet service by Apple Inc) to Flutter.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_apple_pay