1 | <?php |
||
4 | class EcommercePayment_Stripe_CustomerDetails extends DataExtension |
||
|
|||
5 | { |
||
6 | private static $db = array( |
||
7 | "StripeCustomerID" => "Varchar(32)", |
||
8 | "CreditCardDescription" => "Varchar(64)" |
||
9 | ); |
||
10 | |||
11 | private static $indexes = array( |
||
12 | "StripeCustomerID" => true |
||
13 | ); |
||
14 | |||
15 | private static $casting = array( |
||
16 | "CreditCardHasBeenRecorded" => "boolean" |
||
17 | ); |
||
18 | |||
19 | private static $field_labels = array( |
||
20 | "StripeCustomerID" => "Customer ID for Stripe Payments", |
||
21 | "CreditCardDescription" => "Credit Card Description", |
||
22 | "CreditCardHasBeenRecorded" => "Credit Card on File" |
||
23 | ); |
||
24 | |||
25 | /** |
||
26 | * |
||
27 | * @return Boolean |
||
28 | */ |
||
29 | public function CreditCardHasBeenRecorded() |
||
37 | |||
38 | |||
39 | public function updateCMSFields(FieldList $fields) |
||
57 | |||
58 | public function augmentEcommerceFields($fields) |
||
65 | |||
66 | public function onBeforeWrite() |
||
72 | } |
||
73 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.