1 | <?php |
||
7 | class EcommercePayment_TestSuccess extends EcommercePayment_Test |
||
|
|||
8 | { |
||
9 | |||
10 | |||
11 | /** |
||
12 | * standard SS variable. |
||
13 | * |
||
14 | * @Var String |
||
15 | */ |
||
16 | private static $singular_name = 'Ecommerce Test Success Payment'; |
||
17 | public function i18n_singular_name() |
||
21 | |||
22 | /** |
||
23 | * standard SS variable. |
||
24 | * |
||
25 | * @Var String |
||
26 | */ |
||
27 | private static $plural_name = 'Ecommerce Test Success Payments'; |
||
28 | public function i18n_plural_name() |
||
32 | |||
33 | /** |
||
34 | * @param array $data The form request data - see OrderForm |
||
35 | * @param OrderForm $form The form object submitted on |
||
36 | * |
||
37 | * @return EcommercePayment_Result |
||
38 | */ |
||
39 | public function processPayment($data, $form) |
||
47 | |||
48 | public function getPaymentFormFields() |
||
54 | |||
55 | public function getPaymentFormRequirements() |
||
59 | } |
||
60 |
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.