Reply
Contributor
Posts: 12
Registered: ‎04-09-2013

How Many ways to pass transaction data in authorize.Net API?

Hi Guys,

 

Can you suggest me How Many ways to pass transaction data in authorize.Net API

One way I knew that isto pass transaction data in name/value pairs.

If any another way then please share with me ASAP....

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: How Many ways to pass transaction data in authorize.Net API?

Contributor
Posts: 12
Registered: ‎04-09-2013

Re: How Many ways to pass transaction data in authorize.Net API?

Hi,

 

I am using  AIM API 

 

Right now I am using AIM integration funcionality.I have used wcf  service . My service is working fine & get  Proper response  when I am  sending the request on  test URL "https://test.authorize.net/gateway/transact.dll" 

 

Right now I am  sending a request in name value   pair format  LIke :

 

https://test.authorize.net/gateway/transact.dll?x_
login=YourAPILogin&x_tran_key=YourTransactionKey&x_delim_data=true&x_
relay_response=false&x_card_num=4111111111111111&x_exp_date=1010&x_
amount=1.00&merchant_defined_field1=merchant-defined-field_1&merchant_
defined_field2=merchant_defined_field_2

 

Now My question is that  Is there  any another way to send request except name value pair?

Or

Is there any option to send request in xml format or using any encryption on request format?

 

Please share asap............

 

Thanks in Advance

 

 

 

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: How Many ways to pass transaction data in authorize.Net API?

[ Edited ]

There are 2 ways for AIM, name/value or XML.

 

Both documentation is here

http://developer.authorize.net/api/aim/

Posts: 1,609
Topics: 15
Kudos: 209
Solutions: 121
Registered: ‎06-23-2011

Re: How Many ways to pass transaction data in authorize.Net API?

The fact that you are calling a URL with https means the transaction is being transferred securely. GET tends to be less secure than POST on the server side, however, because servers often log the URL's and anyone with access to the server can then look at the logs. Given, they could just as easily insert code to send a copy of the data to them separately, so I suppose that doesn't matter much.

Contributor
Posts: 12
Registered: ‎04-09-2013

Re: How Many ways to pass transaction data in authorize.Net API?

Hi 

 

I appriciate your answer,

 

But , can you share the sample application with the xml request, then its good for me..

 

I have checked out your sample application that is in name value pair .

 

or How can I send the xml request on your test url  for one transaction type like Authorize_capture ASAP......

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: How Many ways to pass transaction data in authorize.Net API?

They don't have sample code for AIM in XML. But they do have it for ARB in XML for php.

http://developer.authorize.net/downloads/samplecode/

Contributor
Posts: 12
Registered: ‎04-09-2013

Re: How Many ways to pass transaction data in authorize.Net API?

[ Edited ]

Ok,

 

Its very helpfull..

 

Now clear me one thing

 

Have you encoded the request data before sedd it to testurl or in a name value pair or xml  format like :

 

"x_login=6W4U4htD76djT&x_tran_key=6KCq6g3L552h9AvS34&x_card_num=4111111111111111&x_exp_date=0222&x_amount=2121&x_trans_id=&x_auth_code=&x_delim_data=TRUE&x_delim_char=+%7c+&x_version=3.1&x_type=&x_method=&x_card_code=&x_card_type=&x_duplicate_window=50&x_invoice_num=12345&x_description=Transaction+Sample&x_first_name=&x_company=xyz&x_address=123+street&x_city=neyork&x_state=sds&x_zip=12122&x_country=&x_phone=123-123-1234&x_fax=1212&

 

or in xml 

 


<?xml version="1.0" encoding="utf-8"?>
<ARBCreateSubscriptionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>mytestacct</name>
<transactionKey>112223344</transactionKey>
</merchantAuthentication>
<refId>Sample</refId>
<subscription>
<name>Sample subscription</name>
<paymentSchedule>
<interval>
<length>1</length>
<unit>months</unit>
</interval>
<startDate>2007-03-15</startDate>
<totalOccurrences>12</totalOccurrences>
<trialOccurrences>1</trialOccurrences>
</paymentSchedule>
<amount>10.29</amount>
<trialAmount>0.00</trialAmount>
<payment>
<creditCard>
<cardNumber>4111111111111111</cardNumber>
<expirationDate>2008-08</expirationDate>
</creditCard>
</payment>
<billTo>
<firstName>John</firstName>
<lastName>Smith</lastName>
</billTo>
</subscription>
</ARBCreateSubscriptionRequest>

 

now my question is that what is the format of both name value and xml request data before sending it to test url

 

I'll be highly thankfull to you for this help...............................................

 

 

 

 

Contributor
Posts: 12
Registered: ‎04-09-2013

Re: How Many ways to pass transaction data in authorize.Net API?

Hi,

I am sending xml request in this format

 

<createTransactionRequest>

<merchantAuthentication>
<x_login>6W4U4h55D76djT</x_login>
<transactionKey>6KCq6g3L2h569AvS34</transactionKey>
</merchantAuthentication>
<transactionRequest>
<transactionType></transactionType>
<amount>150.20</amount>
<payment>
<creditCard>
<cardNumber>4111111111111111</cardNumber>
<expirationDate>0222</expirationDate>
</creditCard>
</payment>
</transactionRequest>
</createTransactionRequest>

 

 

I am getting this response  after sending request on "https://apitest.authorize.net/xml/v1/request.api"

 

 

<?xml version="1.0" encoding="utf-8"?><ErrorResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><messages><resultCode>Error</resultCode><message><code>E00045</code><text>The root node does not reference a valid XML namespace.</text></message></messages></ErrorResponse>

 

just tell me what parameter I need to add where is the error?

 

 

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: How Many ways to pass transaction data in authorize.Net API?