\EcommercePayment_Stripe_ChargeRecordedCustomer
"Abstract" class for a number of different payment types allowing a user to pay for something on a site.
This can't be an abstract class because sapphire doesn't
support abstract DataObject classes.
Synopsis
class EcommercePayment_Stripe_ChargeRecordedCustomer
extends EcommercePayment_Stripe
{
- // Inherited members from EcommercePayment_Stripe
- protected Order $_processing_order;
- protected integer $_processing_amount;
- protected integer $_processing_currency;
- protected integer $_processing_year;
- protected integer $_processing_month;
- protected string $_processing_statement_description;
- protected array $_processing_metadata;
- // methods
- public EcommercePaymentResult processPayment()
- // Inherited methods from EcommercePayment_Stripe
- public void getCMSFields()
- public FieldList getPaymentFormFields()
- public array getPaymentFormRequirements()
- public Boolean validatePayment()
- public EcommercePaymentResult processPayment()
- public string getRequestDetails()
- public string myResponseDetails()
- protected void retrieveVariables()
- protected void instantiateAPI()
- protected void removeCardDetails()
- protected boolean hasFullCardNumber()
- protected void recordTransaction()
Hierarchy
Extends
Members
protected
- $_processing_amount — float
- $_processing_currency — string
- $_processing_metadata — array
- $_processing_month — int
- $_processing_order — Order
- $_processing_statement_description — string
- $_processing_year — int
Methods
public
- processPayment() — Perform payment processing for the type of payment. For example, if this was a credit card payment type, you would perform the data send off to the payment gateway on this function for your payment subclass.
Inherited from EcommercePayment_Stripe
protected
- hasFullCardNumber() — is the full credit card recorded?
- instantiateAPI()
- recordTransaction()
- removeCardDetails() — remove the card details for securityu reasons
- retrieveVariables()
public
- getCMSFields()
- getPaymentFormFields() — Return the payment form fields that should be shown on the checkout order form for the payment type. Example: for {@link DPSPayment}, this would be a set of fields to enter your credit card details.
- getPaymentFormRequirements() — Define what fields defined in {@link Order->getPaymentFormFields()} should be required.
- getRequestDetails()
- myResponseDetails()
- processPayment() — Perform payment processing for the type of payment. For example, if this was a credit card payment type, you would perform the data send off to the payment gateway on this function for your payment subclass.
- validatePayment() — returns true if all the data is correct.