\CommercePaymentMethod
'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 CommercePaymentMethod
extends DataObject
{
- // 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()
Hierarchy
Extends
- DataObject
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