Sunnysideup\Ecommerce\Model\Money\EcommercePayment::validatePayment
Checks if all the data for payment is correct (e.g. credit card) By default it returns true, because lots of payments gatewawys do not have any fields required here.
This function can be called from either an OrderForm (standard checkout) or OrderFormPayment (order confirmation page, eg first payment failed)
Signature
public function validatePayment(array
$data,
Form
$form )
Parameters
$data
— array- The form request data - see OrderForm
$form
— SilverStripe\Forms\Form- The form object submitted on