\PaywayPaymentCheckoutComponent
This replaces the default OnsitePaymentCheckoutComponent and uses the token returned by the PayWay javascript to interact with the REST API.
Synopsis
class PaywayPaymentCheckoutComponent
extends OnsitePaymentCheckoutComponent
{
- // methods
- protected Gateway getGateway()
- public $this setGateway()
- public FieldList getFormFields()
- public array getRequiredFields()
- public boolean validateData()
- public string getCustomerNumber()
- public Response createCustomer()
- public Response updateCustomerContact()
- public array getData()
- public Order setData()
- public void getParameters()
- public void getParameter()
- public string getSingleUseTokenId()
- protected string|array getMerchantId()
- protected string|array getBankAccountId()
- public string getCurrency()
- public string getPaymentFrequency()
- public string getPaymentDateNext()
Hierarchy
Extends
- OnsitePaymentCheckoutComponent
Tasks
Line | Task |
---|---|
145 | handle this more gracefully |
Members
protected
- $gateway — \Omnipay\Common\AbstractGateway|\Omnipay\PaywayRest\Gateway
- $isPayway — bool
Methods
protected
- getBankAccountId() — Get config array or parameter
- getGateway() — Get gateway
- getMerchantId() — Get config array or parameter
public
- createCustomer() — Generate new customer
- getCurrency() — Get order currency
- getCustomerNumber() — Get Customer number
- getData() — Get required data out of the model.
- getFormFields() — Get form fields for manipulating the current order, according to the responsibility of this component.
- getParameter()
- getParameters()
- getPaymentDateNext() — Get next payment date
- getPaymentFrequency() — Get payment frequency
- getRequiredFields() — Get the data fields that are required for the component.
- getSingleUseTokenId() — Get Token from the URL parameters
- setData() — Set the model data for this component.
- setGateway() — Set gateway
- updateCustomerContact() — Update customer contact details
- validateData() — Is this data valid for saving into an order?