payment\PaymentProcessor_MerchantHosted
Default class for merchant-hosted controllers
Synopsis
class PaymentProcessor_MerchantHosted
extends PaymentProcessor
{
- // Inherited members from PaymentProcessor
- protected String $methodName;
- public Payment $payment;
- public PaymentGateway $gateway;
- public $paymentData;
- // methods
- public void capture()
- public FieldList getCreditCardFields()
- public FieldList getFormFields()
- public RequiredFields getFormRequirements()
- // Inherited methods from PaymentProcessor
- public static array get_supported_methods()
- public void setMethodName()
- public void setRedirectURL()
- public String getRedirectURL()
- public void doRedirect()
- public void setup()
- public void capture()
- public FieldList getFormFields()
- public RequiredFields getFormRequirements()
Hierarchy
Extends
Members
protected
- $methodName
—
payment\String
The method name of this controller
public
- $gateway
—
payment\PaymentGateway
The gateway object to be injected to this controller - $payment
—
payment\Payment
The payment object to be injected to this controller - $paymentData
—
array
The payment data array
Methods
public
- capture() — Process a merchant-hosted payment. Users will remain on the site until the payment is completed. Redirect to the postRedirectURL afterwards
- getCreditCardFields() — Return the form fields for credit data
- getFormFields() — Override to add credit card form fields
- getFormRequirements() — Override to add credit card form requirements
Inherited from payment\PaymentProcessor
public
- capture() — Process a payment request. To be extended by individual processor type If there's no break point (i.e exceptions and errors), this should redirect to the postRedirectURL (merchant-hosted) or the external gateway (gateway-hosted)
- doRedirect() — Redirection after payment processing
- getFormFields() — Get the processor's form fields. Custom controllers use this function to add the form fields specifically to gateways.
- getFormRequirements() — Get the form requirements
- getRedirectURL() — Get the url to be redirected to after the payment is completed.
- get_supported_methods() — Get the supported methods array set by the yaml configuraion
- setMethodName() — Set the method name of this controller.
- setRedirectURL() — Set the url to be redirected to after the payment is completed.
- setup() — Save preliminary data to database before processing payment