ThawaniPayBtn class

Inheritance

Constructors

ThawaniPayBtn({Key? key, required String api, required List<Map> products, required void onCreate(Create create), required void onCancelled(StatusClass payStatus), required void onPaid(StatusClass payStatus), Widget? child, required String pKey, Map<String, dynamic>? metadata, required String clintID, ButtonStyle? buttonStyle, bool? testMode, dynamic onError(Map error)?, String? successUrl, String? cancelUrl})
const

Properties

api String
API Code From Thawani Company
final
buttonStyle ButtonStyle?
Button Style
final
cancelUrl String?
The customer would be redirected to successUrl if he decides to cancel the payment (From Thawani API Doc).
final
child Widget?
The Widget Shown In The Button , By Default it have Text
final
clintID String
The Clint Id to be generated by merchant to identify the session (From Thawani API Doc).
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
metadata Map<String, dynamic>?
Useful for storing additional information about your products, customers (From Thawani API Doc).
final
onCancelled → void Function(StatusClass payStatus)
The Function And The Result Of Data If The User Cancelled The Payment.
final
onCreate → void Function(Create create)
The Function And The Result Of Data After Create Session.
final
onError → dynamic Function(Map error)?
The Function And The Reason Of The Error, If Any Error Happen.
final
onPaid → void Function(StatusClass payStatus)
The Function And The Result Of Data If The User Cancelled The Payment.
final
pKey String
The Publishable Key From Thawani Company
final
products List<Map>
A list of products the customer is purchasing. maximum 100 products (From Thawani API Doc).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
successUrl String?
The customer would be redirected to successUrl if payment processed successfully (From Thawani API Doc).
final
testMode bool?
Make It true If You Want Test The Package Or The Api
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ThawaniPayBtn>
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