PayMethodChannel class
An implementation of the contract in this plugin that uses a MethodChannel to communicate with the native end.
Example of a simple method channel:
PayPlatform platform = PayMethodChannel();
final canPay = await platform.userCanPay(configuration);
final paymentData = await platform.showPaymentSelector(
configuration, paymentItems);
- Inheritance
-
- Object
- PayPlatform
- PayMethodChannel
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showPaymentSelector(
PaymentConfiguration paymentConfiguration, List< PaymentItem> paymentItems) → Future<Map< String, dynamic> > -
Shows the payment selector to complete the payment operation.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
userCanPay(
PaymentConfiguration paymentConfiguration) → Future< bool> -
Determines whether a user can pay with the provider in the configuration.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited