create_tx()
create_tx(\apex\transaction\interfaces\TxInterface $tx)
Create a new transaction.
Parameters
\apex\transaction\interfaces\TxInterface | $tx | The transaction object to create. |
Handles the processing of transactions, payments, recurring subscriptions, etc. This is the middleware between the various objects / modals, and the workers / listeners that perform the actions.
create_tx(\apex\transaction\interfaces\TxInterface $tx)
Create a new transaction.
\apex\transaction\interfaces\TxInterface | $tx | The transaction object to create. |
create_controller_options(string $selected = '') : string
Create controller options.
Used for e-mail notification settings, and returns a select list of all installed transaction controller.
string | $selected | The selected controlelr. |
The HTML list of options.
add_system_payment(integer $account_id, integer $userid, float $amount, string $method = 'deposit', string $reference_id) : array
Add system payment
integer | $account_id | The ID# of the transaction account. Can be 0. |
integer | $userid | The id# of the user to add payment to. |
float | $amount | The amount of the payment |
string | $method | The method of payment (deposit or withdraw) |
string | $reference_id | Optional reference id for the tx. |
The resulting tx