cancel
Showing results for 
Search instead for 
Did you mean: 

Transaction Response Fields in the Payment Gateway Response

Hello I'm new with authorize.net and i'm trying to get familiar with it i have been seen some examples to understand better how it works,  But I do have a question for the Transaction Response Fields in the Payment Gateway  Response.

 

I want to get the las 4 digits of the credit card number and I read that order 51(account number) gives that, but I don't know how to get it i tried just to read it in that position but it seems like nothing is in it

 

thanks in advance

authorizeK
Contributor
4 REPLIES 4

What about the other 50+ fields? are they all blank?

RaynorC1emen7
Expert

I ran an example a simple payment with the following fields

 

            post_values.Add("x_login", "XXXX")
            post_values.Add("x_tran_key", "XXXXXX")
            post_values.Add("x_test_request", "TRUE")
            post_values.Add("x_version", "3.0")
            post_values.Add("x_currency_code", "USD")

            post_values.Add("x_type", "AUTH_CAPTURE")
            post_values.Add("x_delim_data", "TRUE")
            post_values.Add("x_delim_char", "|")
            post_values.Add("x_relay_response", "FALSE")
            post_values.Add("x_method", "CC")

 

            post_values.Add("x_card_num", textbox_creditcardnumber.Text.Trim)
            post_values.Add("x_exp_date", textbox_expdate.Text.Trim)

            post_values.Add("x_amount", textbox_paymentauth.Text.Trim)
            post_values.Add("x_description", "description")

            post_values.Add("x_first_name", textbox_creditcardholder.Text.Trim)
            post_values.Add("x_last_name", textbox_creditcardholderlname.Text.Trim)

And when I read the values it gives me 1-38 some of the fields are blank but still reads the position, then I just tried to read

array(50) to see if anyway it had the account number but no there is no blank value there it seems like if that position didn't exist.

 

Thanks again for your help!

http://www.authorize.net/content/dam/authorize/documents/AIM_guide.pdf

Version 3.0
The version 3.0 response contains system
fields from position 1 to 38 and echoes
merchant-defined fields from 39 on,
in the order received by the system.
 
 
The version 3.1 response string contains
68 system fields with field number 39
representing the Card Code (CVV2/CVC2/CID)
response code. Merchant-defined fields
are echoed from field 69 onward. Merchants wishing to use the Card Code feature and
merchants who accept partial authorization tran
sactions must use transaction version 3.1.

Thanks so muchhhhhhhh for your help !!!!