__construct() __construct(\apex\transaction\int $id) Constructor Parameters \apex\transaction\int $id
get_id() get_id(): integer Get id# of the payment method. Returnsinteger —The iD# of the payment method.
add() add(): integer Adds a new payment method from the POSTed database into the 'users_payment' table. Returnsinteger —The I# of the new payment method
get_method_from_form() get_method_from_form(): integer Get payment ID from form.Goes through the HTML form fields, and returns the ID# of the payment method being used, and creates a new payment method if necessary. Returnsinteger —The ID# of the user's payment method to use.
create_user_options() create_user_options(integer $userid,string $method) Create user payment options Parameters integer $userid The ID# of the user to create payment options for. string $method The method (deposit or withdraw) to create payment options for
create_method_options() create_method_options(string $method): string Get method options Parameters string $method The method (deposit / withdraw) to generate options for Returnsstring —The resulting HTML options
get_is_active() get_is_active(): boolean Get is_active Returnsboolean —Whether or not the payment method is active.
get_is_default() get_is_default(): integer Get is_default Returnsinteger —Whether or not this is the default payment method on the user's account.
get_userid() get_userid(): integer Get userid Returnsinteger —The id# of the user who owns the payment method.
get_method() get_method(): string Get method Returnsstring —The method of the payment method, will be either 'deposit' or 'withdraw'.
get_method_id() get_method_id(): integer Get method_id Returnsinteger —The Id# of the payment method as created by the administrator.
get_total_tx() get_total_tx(): integer Get total txs Returnsinteger —The total number of transactions processed against this payment method.
get_total_amount() get_total_amount(): float Get total_amount Returnsfloat —The total amount processed against this payment method in base currency.
get_date_created() get_date_created(): string Get the date_created Returnsstring —The timestamp the payment method was created.
get_method_obj() get_method_obj(): object Get method object Returnsobject —The payment method, apex\transaction\payment_method class.
get_processor() get_processor(): object Get processor Returnsobject —The payment processor controller object.