FlutterOzow class

The FlutterOzow widget integrates Ozow payment gateway through a WebView.

This widget utilizes webview_flutter to render a web page that assists with completing payments via the Ozow payment gateway. More information can be found at https://ozow.com.

Inheritance

Constructors

FlutterOzow({Key? key, required Object transactionId, required String privateKey, required String apiKey, required String siteCode, required String bankRef, required double amount, required bool isTest, required String notifyUrl, String? successUrl, String? errorUrl, String? cancelUrl, String? optional1, String? optional2, String? optional3, String? optional4, String? optional5, void onComplete(OzowTransaction?, OzowStatus)?, void onError(String errorMessage, WebResourceErrorType? errorType)?})

Properties

amount double
The amount to be paid for the transaction.
final
apiKey String
final
bankRef String
Reference string that will appear on the user's bank statement.
final
cancelUrl String?
/The URL to which the redirect result should be posted to if the customer cancels the payment. This is also the page the customer will be redirected to. This URL can also be set for the applicable merchant site in the merchant admin section. If a value is set in the merchant admin and sent in the post, The posted value will be redirected to if the payment is cancelled.
getter/setter pair
errorUrl String?
The URL to which the redirect result should be posted if an error occurs while trying to process the payment. This is also the page the customer will be redirected to. This URL can also be set for the applicable merchant site in the merchant admin section. If a value is set in the merchant admin and sent in the post, the posted value will be redirected to if an error occurred while processing the payment.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isTest bool
Flag to indicate whether this is a test transaction.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
notifyUrl String
If there is a specific bank you want to use, you can specify it here. URLs for various payment outcomes. Ozow sends notifications to these URLs. The URL that the notification result should be posted to. The result will post regardless of the outcome of the transaction.
final
onComplete → void Function(OzowTransaction?, OzowStatus)?
A callback function that is excuted when the transaction is complete
final
onError → void Function(String errorMessage, WebResourceErrorType? errorType)?
final
optional1 String?
Optional fields the merchant can post for additional information They would need passed back in the response. These are also stored with the transaction details by Ozow, And can be useful for filtering transactions in the merchant admin section.
final
optional2 String?
final
optional3 String?
final
optional4 String?
final
optional5 String?
final
privateKey String
Your Ozow private key obtained from your Ozow merchant profile.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
siteCode String
Your Ozow site code obtained from your Ozow merchant profile.
final
successUrl String?
The URL to which the redirect result should be posted to if the payment is successful. This is also be the page the customer gets redirected to. This URL can also be set for the applicable merchant site in the merchant admin section. If a value is set in the merchant admin and sent in the post, the posted value will be redirected to if the payment was successful.
getter/setter pair
transactionId Object
Put your desired width and height for the widget. Unique transaction ID or order number generated from your backend.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<FlutterOzow>
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, int wrapWidth = 65}) 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