RSS

Monthly Archives: March 2010

Card present transactions / Credit Card Swiping in ASP.NET

There are two types of transactions for credit card processing.

1. Card Present Transactions (Credit Card Reader required).

2. Card does not present transactions.

Following are the steps to achieve Card Present transactions using Authorized.Net

1. Purchase a credit card reader. Open the authorized.net merchant account with card present option. Once the account will be created then it will give you the LOGIN ID and TRANSACTION KEY which you need to pass as a parameters in the web service.

2. By swiping the credit card in card reader it will return following text and automatically press enter than after.
%B12345678912345678^DAVE/NISHANT ^14011234026132600000?;12345678912345678=14011234026132600000?
3.  You have to pass following parameters to the web service.

objPayInf.Add(“x_cpversion”, “1.0”);
objPayInf.Add(“x_login”, “YourLoginID”);
objPayInf.Add(“x_amount”, Amount.ToString());
objPayInf.Add(“x_tran_key”, “YourTransactionKey”);
objPayInf.Add(“x_first_name”, oFirstName.ToString());
objPayInf.Add(“x_last_name”, oLastName.ToString());
objPayInf.Add(“x_delim_data”, “TRUE”);
objPayInf.Add(“x_delim_char”, mDelimChar.ToString());
objPayInf.Add(“x_relay_response”, “FALSE”);
objPayInf.Add(“x_response_format”, “1”);
objPayInf.Add(“x_test_request”, TRUE);
objPayInf.Add(“x_type”, “AUTH_CAPTURE”);

objPayInf.Add(“x_currency_code”, “USD”);

objPayInf.Add(“x_market_type”, “2”);

objPayInf.Add(“x_device_type”, “8”);

// You need to parse the string return by the card reader and pass it to the web service using following way.
objPayInf.Add(“x_track2”, “12345678912345678=14011234026132600000“);

4). The web service base URL should be the following:
https://cardpresent.authorize.net/gateway/transact.dll
5). You can get more information by visiting following link:

http://www.authorize.net/support/CP_guide.pdf

Happy Programming!!!!!!!!.

 
Leave a comment

Posted by on March 22, 2010 in payment gateway

 

Tags: , , , , , , ,