Sumup class
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
isCheckoutInProgress
→ Future<
bool?> -
Only available for iOS.
On Android always returns false.
no setter
-
isLoggedIn
→ Future<
bool?> -
Returns whether merchant is already logged in.
no setter
-
isTipOnCardReaderAvailable
→ Future<
bool> -
Checks if Tip on Card Reader (TCR) feature is available.
no setter
-
merchant
→ Future<
SumupPluginMerchantResponse> -
Returns the current merchant.
no setter
Static Methods
-
checkout(
SumupPaymentRequest paymentRequest) → Future< SumupPluginCheckoutResponse> -
Starts a checkout process with
paymentRequest
. -
init(
String affiliateKey) → Future< SumupPluginResponse> -
Initializes SumUp SDK with your
affiliateKey
. -
login(
) → Future< SumupPluginResponse> - Shows SumUp login dialog.
-
loginWithToken(
String token) → Future< SumupPluginResponse> - Uses Transparent authentication to login to SumUp SDK with supplied token.
-
logout(
) → Future< SumupPluginResponse> - Performs logout.
-
openSettings(
) → Future< SumupPluginResponse> - Opens SumUp dialog to connect to a card terminal.
-
prepareForCheckout(
) → Future< SumupPluginResponse> - Calling prepareForCheckout() before instancing a checkout will speed up the checkout time.
-
wakeUpTerminal(
) → Future< SumupPluginResponse> - Wakes up card terminal before real checkout to speed up bluetooth pairing process.