FlutterPay class

Constructors

FlutterPay()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canMakePayments() Future<bool>
Returns true if Apple/ Google Pay is available on device
canMakePaymentsWithActiveCard({required List<PaymentNetwork> allowedPaymentNetworks}) Future<bool>
Returns true if Apple/Google Pay is available on device and there is at least one activated card
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPayment({GoogleParameters? googleParameters, AppleParameters? appleParameters, List<PaymentNetwork> allowedPaymentNetworks = const [], required List<PaymentItem> paymentItems, bool emailRequired = false, required String currencyCode, required String countryCode}) Future<String>
Process the payment and returns the token from Apple/Google pay
setEnvironment({PaymentEnvironment environment = PaymentEnvironment.Test}) → void
Switch Google Pay environment
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited