YPayPlatform class abstract
The interface that implementations of 'YPay' must implement.
Platform implementations should extend this class rather than implement it
as YPay does not consider newly added methods to be breaking changes.
Extending this class(using extends) ensures that the subclass will get the
default implementation, while platform implementations that implements
this interface will be broken by newly added YPayPlatform methods.
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
-
init(
{required Configuration configuration}) → Future< void> - Initializes the SDK for further work
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paymentResultStream(
) → Stream< String> - Returns stream of payment result.
-
startPayment(
{required String url}) → Future< void> - Starts a payment with a specific payment method.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ YPayPlatform
-
The instance of YPayPlatform to use.
getter/setter pair