\StripePaymentCheckoutComponent
This replaces the default OnsitePaymentCheckoutComponent and uses stripe's checkout returning only a nonce to the server.
NOTE: This handles ALL javascript setup so you don't need to do anything. By default it
will replace OnsitePaymentCheckoutComponent via the injector in either single page or
multi-step checkout.
- Author: Mark Guinn <markguinn@gmail.com>
Synopsis
class StripePaymentCheckoutComponent
extends OnsitePaymentCheckoutComponent
{
- // methods
- protected Gateway getGateway()
- public $this setGateway()
- public FieldList getFormFields()
- public array getRequiredFields()
- public boolean validateData()
- public array getData()
- public Order setData()
Hierarchy
Extends
- OnsitePaymentCheckoutComponent
Members
protected
- $gateway — \Omnipay\Common\AbstractGateway|\Omnipay\Stripe\Gateway
- $isStripe — bool
Methods
protected
public
- getData() — Get required data out of the model.
- getFormFields() — Get form fields for manipulating the current order, according to the responsibility of this component.
- getRequiredFields() — Get the data fields that are required for the component.
- setData() — Set the model data for this component.
- setGateway()
- validateData() — Is this data valid for saving into an order?