HyperpayPlugin class
The interface for Hyperpay SDK. To use this plugin, you will need to have 2 endpoints on your server.
Please check the guide to setup your server.
Refer to HyperPay API for more information on Test/Live systems.
Properties
- config → HyperpayConfig
-
Read the configurations used to setup this instance of HyperPay.
no setter
-
getCheckoutID
→ Future<
String> -
A call to the endpoint on your server to get a checkout ID.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
initSession(
{required CheckoutSettings checkoutSetting}) → void - Instantiate a checkout session.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pay(
CardInfo card) → Future< PaymentStatus> - Perform the transaction using iOS/Android HyperPay SDK.
-
paymentStatus(
String checkoutID, {Map< String, String> ? headers}) → Future<Map< String, dynamic> > -
Check for payment status using a
checkoutID
. -
payWithApplePay(
ApplePaySettings applePay) → Future< PaymentStatus> - Perform a transaction natively with Apple Pay.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
setup(
{required HyperpayConfig config}) → Future< HyperpayPlugin> - Setup HyperPay instance with the required stuff to make a successful payment transaction.