ThawaniPayBtn constructor
const
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,
Implementation
const ThawaniPayBtn(
{Key? key,
required this.api,
required this.products,
required this.onCreate,
required this.onCancelled,
required this.onPaid,
this.child,
required this.pKey,
this.metadata,
required this.clintID,
this.buttonStyle,
this.testMode,
this.onError,
this.successUrl,
this.cancelUrl})
: super(key: key);