SuperchargeConfigOptionsCallbacks class
Constructors
-
SuperchargeConfigOptionsCallbacks({Future<Bool> handleAuthorizeTransaction(String fromAddress, String networkCode, String amount)?, Future<Map<String, dynamic>> handleOrderFeeCalculation(String asset, String networkCode, String amount)?, Future<Map<String, String>> onAddressRequested(String asset, String network)?, Future<void> onFailure(String error, String networkCode, String? address)?, Future<void> onOrderCreated(String orderId, String type)?, Future<void> onSuccess(String txHash, String networkCode, String? address)?})
-
Properties
-
handleAuthorizeTransaction
→ Future<Bool> Function(String fromAddress, String networkCode, String amount)?
-
An optional callback that gets called before the user is allowed to submit a transaction via their wallet.
final
-
handleOrderFeeCalculation
→ Future<Map<String, dynamic>> Function(String asset, String networkCode, String amount)?
-
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
onAddressRequested
→ Future<Map<String, String>> Function(String asset, String network)?
-
A function that returns a deposit address for a given coin and network, optional if paymentMethod=binance-pay
final
-
onFailure
→ Future<void> Function(String error, String networkCode, String? address)?
-
A function that is called when the payment fails
final
-
onOrderCreated
→ Future<void> Function(String orderId, String type)?
-
Called once your end-user has confirmed intention to deposit via one of our merchant integrations.
final
-
onSuccess
→ Future<void> Function(String txHash, String networkCode, String? address)?
-
A function that is called when the payment succeeds
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited