PaymentsManager class

Global Payments manager used for managing payments with the LUNC/LUNA Blockchain

Constructors

PaymentsManager()

Properties

businessWallet String?
getter/setter pair
customerWallet String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

chargeCustomer(double luna) Future<PaymentsResponse>
Returns a Tx hash of the payment transaction if successful, and internally manages burn tax for successful gas fees
configureBlockchain({TerraEnvironment env = TerraEnvironment.luna2TestNet}) PaymentsManager
Configure which Blockchain you are targeting (LUNC/LUNA)
configureBusinessWallet(String? businessWallet) PaymentsManager
Configure your Business Wallet (this is the wallet address where customers will be paying you)
configureCustomerWallet(String recoveryWords) PaymentsManager
Configure the customer wallet that will be making the payment
getTotalFundsInBusinessWallet() Future<TotalFunds>
Total funds currently in your wallet address (Business Wallet)
getTotalFundsInCustomerWallet() Future<TotalFunds>
Returns the total funds accumulated in the customer wallet Useful for determining if a customer can afford making a payment or not
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited