\PaymentMethod
'Abstract' class that you will extend to add payment providers These will automatically be added under the "Payments" tab in Settings, inside the CMS
Synopsis
class PaymentMethod
extends DataObject
implements
PermissionProvider
{
- // members
- public static boolean $hidden = false;
- public static $handler;
- public $Title;
- public $Icon;
- private static array $db = ;
- private static array $has_one = ;
- private static array $casting = ;
- private static array $summary_fields = ;
- // methods
- public void getLabel()
- public void getCMSFields()
- public void GatewayURL()
- public void providePermissions()
- public void canView()
- public void canCreate()
- public void canEdit()
- public void canDelete()
Hierarchy
Extends
- DataObject
Implements
- PermissionProvider
Members
private
- $casting
- $db
- $has_one
- $summary_fields
public
-
$Icon
Route to icon that is associated with this provider -
$Title
Title of this payment method (eg: PayPal, WorldPay, etc) -
$handler
The controller this is mapped to