\Payment_Controller
Summary Controller is responsible for displaying all order data before posting to the final payment gateway.
- Author: morven
Synopsis
class Payment_Controller
extends Commerce_Controller
{
- // members
- private static string $url_segment = "commerce/payment";
- private static array $allowed_actions = ;
- protected $payment_handler;
- protected $payment_method;
- // Inherited members from Commerce_Controller
- protected $dataRecord;
- // methods
- public void getPaymentHandler()
- public void setPaymentHandler()
- public void getPaymentMethod()
- public void setPaymentMethod()
- public Order getOrder()
- public void getClassName()
- public void init()
- public void index()
- public void callback()
- public void complete()
- public void success_data()
- public void error_data()
- // Inherited methods from Commerce_Controller
- public void data()
- public void getDataRecord()
- public void setDataRecord()
- public void Link()
- public void init()
- public void getPostageAreas()
- public void results()
Hierarchy
Extends
Members
private
- $allowed_actions
- $url_segment — string
protected
- $dataRecord
- $payment_handler
- $payment_method
Methods
public
- callback() — This method is what is called at the end of the transaction. It takes either post data or get data and then sends it to the relevent payment method for processing.
- complete()
- error_data()
- getClassName()
- getOrder() — Find the current order
- getPaymentHandler()
- getPaymentMethod()
- index() — Action that gets called before we interface with our payment method.
- init()
- setPaymentHandler()
- setPaymentMethod()
- success_data()
Inherited from Commerce_Controller
public
- Link()
- data() — Returns the associated database record
- getDataRecord()
- getPostageAreas() — Function to find relevent postage rates, based on supplied country and zip/postal code data.
- init() — Init actions that happen globally to all commerce interfaces.
- results() — Process and render search results. This has been hacked a bit to load products into the list (if they exists). Will need to come up with a more elegant solution to dealing with complex searches of objects though.
- setDataRecord()