Moneroo class
This widget is responsible of performing the full payment part on Moneroo. Fistly, based on the given data, it will retrieve a payment link.This link will be used to display a webview where the user will perform its payments.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- Moneroo
Constructors
-
Moneroo({required int amount, required String apiKey, required MonerooCurrency currency, required MonerooCustomer customer, required String description, required void onPaymentCompleted(MonerooPaymentInfos infos, BuildContext context), required void onError(dynamic error, BuildContext context), Key? key, bool sandbox = false, String? callbackUrl, Map<
String, dynamic> ? metadata}) -
const
Properties
- amount → int
-
. The payment's amount
final
- apiKey → String
-
The Moneroo API key
final
- callbackUrl → String?
-
The payment's callback URL where the user will be redirected after the
payment. The basic one is https://example.com.
final
- currency → MonerooCurrency
-
. The payment's currency
final
- customer → MonerooCustomer
-
. The payment's customer
final
- description → String
-
. The payment's description
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> ? -
Some metadata that you want to store about the payment on Moneroo
final
- onError → void Function(dynamic error, BuildContext context)
-
A callback function to handle errors that will occur
final
- onPaymentCompleted → void Function(MonerooPaymentInfos infos, BuildContext context)
-
A callback function that is called once the payment is processed wheiter
or not it succeed. You can have infos about that using the infos parameter
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sandbox → bool
-
Defined whether or not Moneroo is in sandbox mode. The Default value
is false
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _MonerooState -
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