+
+ // For legacy reasons we set these creditcard expiry fields if present
+ if (isset($params['credit_card_exp_date'])) {
+ $params['year'] = CRM_Core_Payment_Form::getCreditCardExpirationYear($params);
+ $params['month'] = CRM_Core_Payment_Form::getCreditCardExpirationMonth($params);
+ }
+
+ // Assign IP address parameter
+ $params['ip_address'] = CRM_Utils_System::ipAddress();
+