TabbySnippet class

Inheritance

Constructors

TabbySnippet({required num totalAmountWithVat, UniPayCurrency currency = UniPayCurrency.sar, UniPayLocale locale = UniPayLocale.ar, Color borderColor = const Color(0xFFD6DED6), Color backgroundColor = const Color(0xFFFFFFFF), Color textColor = const Color(0xFF292929), String merchantCode = "sa", String psKey = "", int installmentCount = 4, UniPayEnvironment environment = UniPayEnvironment.production, MerchantUrl? merchantUrl, Key? key})

Properties

backgroundColor Color
Background color of the snippet, default is 0xFFFFFFFF
final
borderColor Color
Border color of the snippet, default is 0xFFD6DED6
final
currency UniPayCurrency
Currency of transaction, default is SAR
final
environment UniPayEnvironment
Environment of Tabby, default is UniPayEnvironment.production
final
hashCode int
The hash code for this object.
no setterinherited
installmentCount int
Installment count, default is 4
final
locale UniPayLocale
Locale of transaction, default is en_US
final
merchantCode String
Merchant code for Tabby, default is sa for Saudi Arabia
getter/setter pairinherited
merchantUrl MerchantUrl
  • Merchant Urls for Webhook notification
  • getter/setter pairinherited
    psKey String
    Tabby publishable secret key provided by Tabby to process the payments
    getter/setter pairinherited
    runtimeType Type
    A representation of the runtime type of the object.
    no setterinherited
    secretKey String
    Tabby secret key provided by Tabby to process the payments, only needed for get, capture, and refund operations
    getter/setter pairinherited
    tabbyHeaders Map<String, String>
    End-point Header
    no setterinherited
    textColor Color
    Text color of the snippet, default is 0xFF292929
    final
    totalAmountWithVat num
    Total amount with VAT
    final

    Methods

    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    toJson() Map<String, dynamic>
    Convert the TabbyCredential to JSON
    inherited
    toString() String
    A string representation of this object.
    inherited

    Operators

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