Commit d1e6fc69 authored by jenlampton's avatar jenlampton

Limit userFields to one-time transactions only.

parent a527a4eb
......@@ -353,8 +353,8 @@ function authorizenetwebform_webform_client_form_submit($form, &$form_state) {
);
}
// Add everything else as UuserFields.
if (!empty($field_keys)) {
// Add everything else as UuserFields (API only supports One-Time transactions)
if ($field_values[$type_key] == 'one-time' && !empty($field_keys)) {
$data[$top_key][$second_key]['userFields'] = array();
$data[$top_key][$second_key]['userFields']['userField'] = array();
$count = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment