MethodChannelZettleSdk class
An implementation of ZettleSdkPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- ZettleSdkPlatform
- MethodChannelZettleSdk
Constructors
Properties
- authStateChannel → EventChannel
-
The event channel for auth state changes
final
-
authStateStream
→ Stream<
bool> -
Stream of authentication state changes
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
charge(
{required int amount, required String reference, TippingConfiguration? tippingConfiguration, bool enableInstallments = false}) → Future< PaymentResult> -
Process a card payment
override
-
chargeManualCardEntry(
{required int amount, required String reference, String? bnCode}) → Future< ManualCardEntryResult> -
Process a manual card entry payment
override
-
chargeQRC(
{required int amount, required String reference, required QRCPaymentType paymentType}) → Future< QRCPaymentResult> -
Process a QRC payment (PayPal or Venmo)
override
-
getPlatformVersion(
) → Future< String?> -
override
-
initialize(
ZettleConfig config) → Future< void> -
Initialize the Zettle SDK with configuration
override
-
isLoggedIn(
) → Future< bool> -
Check if user is logged in
override
-
login(
) → Future< void> -
Login to Zettle account
override
-
logout(
) → Future< void> -
Logout from Zettle account
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openSettings(
SettingsScreenType settingsType) → Future< void> -
Open a settings screen
override
-
refund(
{int? amount, required String paymentReferenceId, required String refundReference}) → Future< RefundResult> -
Refund a previous payment
override
-
refundManualCardEntry(
{int? amount, required String paymentReferenceId, required String refundReference}) → Future< ManualCardEntryRefundResult> -
Refund a manual card entry payment
override
-
refundQRC(
{int? amount, required String paymentReferenceId, required String refundReference, required QRCPaymentType paymentType}) → Future< QRCRefundResult> -
Refund a QRC payment
override
-
retrieveManualCardEntryInfo(
String referenceId) → Future< ManualCardEntryResult> -
Retrieve manual card entry payment information
override
-
retrievePaymentInfo(
String referenceId) → Future< PaymentResult> -
Retrieve payment information
override
-
retrieveQRCPaymentInfo(
String referenceId, QRCPaymentType paymentType) → Future< QRCPaymentResult> -
Retrieve QRC payment information
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited