| 1 | <?php |
||
| 6 | class EcommercePayment_TestPending extends EcommercePayment_Test |
||
|
|
|||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * standard SS variable. |
||
| 11 | * |
||
| 12 | * @Var String |
||
| 13 | */ |
||
| 14 | private static $singular_name = 'Ecommerce Test Pending Payment'; |
||
| 15 | public function i18n_singular_name() |
||
| 19 | |||
| 20 | /** |
||
| 21 | * standard SS variable. |
||
| 22 | * |
||
| 23 | * @Var String |
||
| 24 | */ |
||
| 25 | private static $plural_name = 'Ecommerce Test Pending Payments'; |
||
| 26 | public function i18n_plural_name() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param array $data The form request data - see OrderForm |
||
| 33 | * @param OrderForm $form The form object submitted on |
||
| 34 | * |
||
| 35 | * @return EcommercePayment_Result |
||
| 36 | */ |
||
| 37 | public function processPayment($data, $form) |
||
| 45 | |||
| 46 | public function getPaymentFormFields() |
||
| 52 | } |
||
| 53 |
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.