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.';
}
}
-
Notifications
You must be signed in to change notification settings - Fork 15
Flutter apple pay
License
LeonidVeremchuk/flutter-apple-pay
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|