Skip to content

Instantly share code, notes, and snippets.

@rattlion
Created September 6, 2012 16:42
Show Gist options
  • Save rattlion/3658348 to your computer and use it in GitHub Desktop.
Save rattlion/3658348 to your computer and use it in GitHub Desktop.
$data = array (
'amount' => $form_state['values']['donation_amounts'],
'name_on_card' => $form_state['values']['name_on_card'],
'credit_card_number' => $form_state['values']['credit_card_number'],
'cvv' => $form_state['values']['cvv'],
'expiration_month' => $form_state['values']['expiration_month'],
'expiration_year' => $form_state['values']['expiration_year'],
'first_name' => $form_state['values']['first_name'],
'last_name' => $form_state['values']['last_name'],
'organization' => $form_state['values']['organization'],
'address_1' => $form_state['values']['address_1'],
'address_2' => $form_state['values']['address_2'],
'city' => $form_state['values']['city'],
'state' => $form_state['values']['state'],
'postal_code' => $form_state['values']['postal_code'],
'country' => $form_state['values']['country'],
'day_phone' => $form_state['values']['day_phone'],
'email' => $form_state['values']['email'],
'comment' => 'Donation page: ' . drupal_get_path_alias(current_path()),
'transaction_record' => $transaction_record,
'transaction_form' => 'donation_form'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment