Sunnysideup\Ecommerce\Forms\Validation\EcommercePaymentFormSetupAndValidation::validateAndSaveCreditCardInformation
return false if there is an error and returns true if all is well.
If there are no errors, then the payment object will also be written... If there are errors, the errors will be added to the form.
Signature
public function validateAndSaveCreditCardInformation(array
$data,
Form
$form,
[EcommercePayment
$paymentObject = NULL] )
Parameters
$data
— array$form
— object
$paymentObject
— object
Returns
- bool