\apex\transactionprocessor

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.

Summary

Methods
Properties
Constants
create_tx()
transfer_funds()
create_controller_options()
add_system_payment()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

transfer_funds()

transfer_funds(integer  $from_account, integer  $to_account, float  $amount) 

Transfer funds

Parameters

integer $from_account

The ID# of the account to transfer funds from

integer $to_account

The ID# of the account to transfer funds to

float $amount

The amount to transfer

create_controller_options()

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.

Parameters

string $selected

The selected controlelr.

Returns

string —

The HTML list of options.

add_system_payment()

add_system_payment(integer  $account_id, integer  $userid, float  $amount, string  $method = 'deposit', string  $reference_id) : array

Add system payment

Parameters

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.

Returns

array —

The resulting tx