Advertisement
Guest User

GravityForms Authorize.net Add-on Transaction Data Filter

a guest
Feb 13th, 2013
307
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter('gform_authorizenet_before_single_payment','my_anet_custom_fields', 10, 2);
  2. function my_anet_custom_fields($transaction, $form_data) {
  3.  
  4.         # GET DATA FROM FORM INPUT
  5.        $form_data["phone"] = rgpost('input_3');
  6.  
  7.         # ADD DATA TO TRANSACTION OBJECT
  8.        $transaction->phone = $form_data["phone"];
  9.  
  10.         return $transaction;
  11. }
Advertisement
RAW Paste Data Copied
Advertisement