PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Separate Billing/Shipping Fields

  1. Is there a way to add more "Authorize.net Fields Form Fields" under the Authorize.Net Transaction Settings? We have a client that would like separate billing/shipping information. Currently, upon submission, the Authorize.net receipt displays the Billing Address given, but not the Shipping Address. Any help would be appreciated! Thanks!

    Posted 11 years ago on Monday February 11, 2013 | Permalink
  2. How about using this filter which was contributed by another Gravity Forms user:
    http://www.gravityhelp.com/forums/topic/sending-additional-information-to-authorizenet-via-namevalue-pairs#post-143109

    You can see all the supported fields in the gravityformsauthorizenet/api/lib/AuthorizetNetAIM.php file on line 81:

    private $_all_aim_fields = array("address","allow_partial_auth","amount",
            "auth_code","authentication_indicator", "bank_aba_code","bank_acct_name",
            "bank_acct_num","bank_acct_type","bank_check_number","bank_name",
            "card_code","card_num","cardholder_authentication_value","city","company",
            "country","cust_id","customer_ip","delim_char","delim_data","description",
            "duplicate_window","duty","echeck_type","email","email_customer",
            "encap_char","exp_date","fax","first_name","footer_email_receipt",
            "freight","header_email_receipt","invoice_num","last_name","line_item",
            "login","method","phone","po_num","recurring_billing","relay_response",
            "ship_to_address","ship_to_city","ship_to_company","ship_to_country",
            "ship_to_first_name","ship_to_last_name","ship_to_state","ship_to_zip",
            "split_tender_id","state","tax","tax_exempt","test_request","tran_key",
            "trans_id","type","version","zip"
            );
    Posted 11 years ago on Tuesday February 12, 2013 | Permalink
  3. Hmmm, thank you for the post.

    However, I'm more of a front end developer, so I'm trying to grasp exactly what I need to put into the functions.php document.

    Using the AIM array values, for Authorize to record the shipping info, I would use the following?

    "ship_to_address",
    "ship_to_city",
    "ship_to_state"
    ,"ship_to_zip",

    Example:

    # GET DATA FROM FORM INPUT
    $form_data["ship_to_address"] = rgpost("input_2_1");
    $form_data["ship_to_city"] = rgpost("input_2_2");
    $form_data["ship_to_state"] = rgpost("input_2_3");
    $form_data["ship_to_zip"] = rgpost("input_2_4");

    # ADD DATA TO TRANSACTION OBJECT
    $transaction->description = 'Shipping Address: ' . $form_data["ship_to_address"];
    $transaction->description = 'City: ' . $form_data["ship_to_city"];
    $transaction->description = 'State: ' . $form_data["ship_to_state"];
    $transaction->description = 'Zip: ' . $form_data["ship_to_zip"];

    Posted 11 years ago on Tuesday February 12, 2013 | Permalink
  4. Assuming that those field IDs are correct (all your rgpost values) then those will assign the entered data to the $form_data array.

    However, in your second part (# ADD DATA TO TRANSACTION OBJECT) you are assigning all the shipping values to the description which is sent to Authorize.net. If that's what you're looking to do, that will work fine. If you want to actually set the shipping address at Authorize.net, please let us know.

    Posted 11 years ago on Tuesday February 12, 2013 | Permalink