ABACheckoutContainer class

ABACheckoutContainer

A completed widget which allow user intergrate ABA Payment into their flutter app easily

@required parameter

amount: double
firstname: String
lastname: String
email: String
phone: String
checkoutApiUrl : String
merchant: ABAMerchant
Inheritance

Constructors

ABACheckoutContainer({Key? key, required double amount, required double shipping, required String lastname, required String firstname, required String email, required String phone, List<ABATransactionItem> items = const [], required String checkoutApiUrl, required ABAMerchant merchant, bool enabled = false, Widget? checkoutLabel, dynamic onBeginCheckout(ABATransaction? transaction)?, dynamic onFinishCheckout(ABATransaction? transaction)?, dynamic onBeginCheckTransaction(ABATransaction? transaction)?, dynamic onFinishCheckTransaction(ABATransaction? transaction)?, dynamic onCreatedTransaction(int? value, String? msg)?, dynamic onPaymentSuccess(ABATransaction? transaction)?, dynamic onPaymentFail(ABATransaction? transaction)?})
const

Properties

amount double
amount respresent total amount to checkout
final
checkoutApiUrl String
checkoutApiUrl respresent checkout api link from the server side
final
checkoutLabel Widget?
checkoutLabel allow user to change button text
final
email String
email respresent user email
final
enabled bool
enabled allow button to be pressed
final
firstname String
firstname respresent user firstname
final
hashCode int
The hash code for this object.
no setterinherited
items List<ABATransactionItem>
items respresent list of items(json format) that user selected
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lastname String
lastname respresent user lastname
final
merchant ABAMerchant
merchant respesent ABAMerchant object
final
onBeginCheckout → (dynamic Function(ABATransaction? transaction)?)
METHOD: onBeginCheckout(ABATransaction transaction)
final
onBeginCheckTransaction → (dynamic Function(ABATransaction? transaction)?)
METHOD: onBeginCheckTransaction(ABATransaction transaction)
final
onCreatedTransaction → (dynamic Function(int? value, String? msg)?)
final
onFinishCheckout → (dynamic Function(ABATransaction? transaction)?)
METHOD: onFinishCheckout(ABATransaction transaction)
final
onFinishCheckTransaction → (dynamic Function(ABATransaction? transaction)?)
METHOD: onFinishCheckTransaction(ABATransaction transaction)
final
onPaymentFail → (dynamic Function(ABATransaction? transaction)?)
METHOD: onPaymentFail(ABATransaction transaction)
final
onPaymentSuccess → (dynamic Function(ABATransaction? transaction)?)
METHOD: onPaymentSuccess(ABATransaction transaction)
final
phone String
phone respresent user valid phone number
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shipping double
shipping respresent shipping cost
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _ABACheckoutContainerState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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