\apex\transaction\workertx

The worker / listener for all tx based actions, including createing a tx, updating status, processing a payment, and so on.

Summary

Methods
Properties
Constants
create()
load()
get_transaction_list()
transfer()
update_status()
update_amount()
confirm_user()
confirm_admin()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
process_payment()
No private properties found
N/A

Methods

load()

load(\apex\transaction\worker\EventMessageInterface  $msg)

Load a transaction

Parameters

\apex\transaction\worker\EventMessageInterface $msg

The message that was dispatched via RPC

get_transaction_list()

get_transaction_list(\apex\transaction\worker\EventMessageInterface  $msg)

Retrieve a list of transactions based on defined search criteria.

Parameters

\apex\transaction\worker\EventMessageInterface $msg

The message that was dispatched.

transfer()

transfer(\apex\transaction\worker\EventMessageInterface  $msg)

Transfer funds from one account to another.

Parameters

\apex\transaction\worker\EventMessageInterface $msg

The message that was dispatched

update_amount()

update_amount(\apex\transaction\worker\EventMessageInterface  $msg)

Update transaction amount.

Parameters

\apex\transaction\worker\EventMessageInterface $msg

The message that was dispatched.

confirm_user()

confirm_user(\apex\transaction\worker\EventMessageInterface  $msg,\apex\app\msg\emailer  $emailer)

Submit user confirmation details

Parameters

\apex\transaction\worker\EventMessageInterface $msg

The message that was dispatched.

\apex\app\msg\emailer $emailer

Injected. The apex\app\msg\emailer class.

confirm_admin()

confirm_admin(string  $data)

Submit admin confirmation details

Parameters

string $data

The data.

process_payment()

process_payment(\apex\transaction\worker\tx  $tx)

Process payment

Parameters

\apex\transaction\worker\tx $tx

The transaction to process payment for