ThawaniPayBtn class
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