OneTimePayments
Payments on the GoodDollar wallet are done via payment links.
G$s are held in an escrow and the recipient can retrieve the funds if he has the key. While the money is in escrow the sender can choose to cancel the payment and retrieve the funds. Based on Celo's payments contract.
Events
PaymentDeposit
Emitted when payment was performed. Occurs only during the token contract call.
To deposit a payment to a one time payment address call perform the further:
The above will trigger OneTimePayments onTokenTransfer callback, which will trigger the PaymentDeposit.
PaymentCancel
Emitted when payment was cancelled.
PaymentWithdraw
Emitted when payment was withdrawn.
withdraw
Withdrawal function.
cancel
Payments cancel function.
Allows only creator of payment to cancel.
Last updated