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....
07-05-2013 10:49 AM
07-05-2013 11:24 AM
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
07-06-2013 12:55 AM
There are 2 ways for AIM, name/value or XML.
Both documentation is here
07-06-2013 08:22 AM - edited 07-06-2013 08:22 AM
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.
07-08-2013 06:02 PM
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......
07-09-2013 02:22 AM
They don't have sample code for AIM in XML. But they do have it for ARB in XML for php.
07-09-2013 04:26 AM
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...............................................
07-09-2013 04:55 AM - edited 07-09-2013 04:56 AM
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?
07-09-2013 09:22 AM
07-09-2013 09:30 AM