ZettleSdkPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • ZettleSdkPlatform
Implementers

Constructors

ZettleSdkPlatform()
Constructs a ZettleSdkPlatform.

Properties

authStateStream → Stream<bool>
Stream of authentication state changes
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

charge({required int amount, required String reference, TippingConfiguration? tippingConfiguration, bool enableInstallments = false}) → Future<PaymentResult>
Process a card payment
chargeManualCardEntry({required int amount, required String reference, String? bnCode}) → Future<ManualCardEntryResult>
Process a manual card entry payment
chargeQRC({required int amount, required String reference, required QRCPaymentType paymentType}) → Future<QRCPaymentResult>
Process a QRC payment (PayPal or Venmo)
getPlatformVersion() → Future<String?>
initialize(ZettleConfig config) → Future<void>
Initialize the Zettle SDK with configuration
isLoggedIn() → Future<bool>
Check if user is logged in
login() → Future<void>
Login to Zettle account
logout() → Future<void>
Logout from Zettle account
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openSettings(SettingsScreenType settingsType) → Future<void>
Open a settings screen
refund({int? amount, required String paymentReferenceId, required String refundReference}) → Future<RefundResult>
Refund a previous payment
refundManualCardEntry({int? amount, required String paymentReferenceId, required String refundReference}) → Future<ManualCardEntryRefundResult>
Refund a manual card entry payment
refundQRC({int? amount, required String paymentReferenceId, required String refundReference, required QRCPaymentType paymentType}) → Future<QRCRefundResult>
Refund a QRC payment
retrieveManualCardEntryInfo(String referenceId) → Future<ManualCardEntryResult>
Retrieve manual card entry payment information
retrievePaymentInfo(String referenceId) → Future<PaymentResult>
Retrieve payment information
retrieveQRCPaymentInfo(String referenceId, QRCPaymentType paymentType) → Future<QRCPaymentResult>
Retrieve QRC payment information
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

instance ↔ ZettleSdkPlatform
The default instance of ZettleSdkPlatform to use.
getter/setter pair