\Payment_Controller
Summary Controller is responsible for displaying all order data before posting to the final payment gateway.
- Author: i-lateral (http://www.i-lateral.com)
Synopsis
class Payment_Controller
extends Controller
{
- // members
- private static string $url_segment = "checkout/payment";
- private static string $class_name = "Checkout";
- private static array $allowed_actions = ;
- private static array $url_handlers = ;
- protected $payment_handler;
- protected $payment_method;
- // methods
- public void getPaymentHandler()
- public void setPaymentHandler()
- public void getPaymentMethod()
- public void setPaymentMethod()
- public void getClassName()
- public boolean ShowTax()
- public string Link()
- public void init()
- public void index()
- public void callback()
- public void complete()
- public void success_data()
- public void error_data()
Hierarchy
Extends
- Controller
Members
private
- $allowed_actions
- $class_name
—
string
Name of the current controller. Mostly used in templates for targeted styling. - $url_handlers
—
array
Set up the "restful" URLs - $url_segment
—
string
URL Used to generate links to this controller.
protected
- $payment_handler
—
string
Name of the payment handler we are using - $payment_method
—
string
Name of the payment method we are using
Methods
public
- Link() — Get the link to this controller
- ShowTax() — Shortcut to checkout config, to allow us to access it via templates
- callback() — This method can be called by a payment gateway to provide automated integration.
- complete()
- error_data()
- getClassName()
- getPaymentHandler()
- getPaymentMethod()
- index() — Action that gets called before we interface with our payment method.
- init()
- setPaymentHandler()
- setPaymentMethod()
- success_data()