/**
* Make sure that credit card number and cvv are valid.
* Called within the scope of a QF formRule function
+ *
+ * @param array $values
+ * @param array $errors
*/
public static function validateCreditCard($values, &$errors) {
if (!empty($values['credit_card_type']) || !empty($values['credit_card_number'])) {
* Map address fields.
*
* @param int $id
- * @param $src
- * @param $dst
+ * @param array $src
+ * @param array $dst
* @param bool $reverse
- *
- * @return void
*/
- public static function mapParams($id, &$src, &$dst, $reverse = FALSE) {
+ public static function mapParams($id, $src, &$dst, $reverse = FALSE) {
static $map = NULL;
if (!$map) {
$map = array(
= CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $params['event_id'], 'financial_type_id');
$this->_params['mode'] = $this->_mode;
- //add contribution reocord
+ //add contribution record
$contributions[] = $contribution = CRM_Event_Form_Registration_Confirm::processContribution($this, $this->_params, $result, $contactID, FALSE);
// add participant record