\Payment_Extension
Mixin to augment the {@link Payment} class.
Payment statuses: Incomplete,Success,Failure,Pending
- Author: Frank Mullenger <frankmullenger@gmail.com>
- Copyright: Copyright (c) 2011, Frank Mullenger
Synopsis
class Payment_Extension
extends DataExtension
{
- // members
- private static array $has_one = ;
- private static array $summary_fields = ;
- // methods
- public Boolean canCreate()
- public Boolean canDelete()
- public String SummaryOfAmount()
- public FieldList updateCMSFields()
- public void onAfterWrite()
Hierarchy
Extends
- DataExtension
Members
private
- $has_one
- $summary_fields
Methods
public
- SummaryOfAmount() — Helper to get a nicely formatted amount for this {@link Payment}
- canCreate() — Cannot create {@link Payment}s in the CMS.
- canDelete() — Cannot delete {@link Payment}s in the CMS.
- onAfterWrite() — After payment success process onAfterPayment() in {@link Order}.
- updateCMSFields() — Fields to display this {@link Payment} in the CMS, removed some of the unnecessary fields.