\PaymentHandler
Abstract class that contains methods for processing interactions with a particular payment class
Synopsis
class PaymentHandler
extends Controller
{
- // members
- private static array $allowed_actions = ;
- private static array $url_handlers = ;
- protected PaymentMethod $payment_gateway;
- protected Object $order_data;
- protected Object $payment_data;
- // methods
- public void getPaymentGateway()
- public void setPaymentGateway()
- public void getOrderData()
- public void setOrderData()
- public void getPaymentData()
- public void setPaymentData()
- public void handleRequest()
- public abstract void index()
- public abstract void callback()
Hierarchy
Extends
- Controller
Members
private
- $allowed_actions
- $url_handlers
—
array
Set up the "restful" URLs
protected
- $order_data
—
Object
An object of the current order data we are dealing with, this can be ArrayData, or a DataObject. - $payment_data
—
Object
An object of the current payment data. This can be tapped into via extensions to find out what the gateway returned and then used to update orders. - $payment_gateway
—
PaymentMethod
The current payment gateway we are using
Methods
public
- callback() — Retrieve and process callback info from the payment gateway.
- getOrderData()
- getPaymentData()
- getPaymentGateway()
- handleRequest()
- index() — The index action is called by the payment controller before order is processed by relevent payment gateway.
- setOrderData()
- setPaymentData()
- setPaymentGateway()