discoin.Client.handle_transaction¶
-
async
Client.
handle_transaction
(transaction_id, handled: bool = True)¶ Handling a transaction just marks it as handled, or processed.
- Parameters
code_to – (
str
) The 3 letter code to send a transaction to.amount – (
float
) The amount of currency in original format.user_id – (
int
) The user_id from the user who requested the transactionid – (
str
) The id of the transaction you want to handle
- Return type
- Handled
(
bool
) (Optional) Defaults to True. If you want to mark a transaction as unhandled, then set this to False