Adsence750x90

Tuesday, September 30, 2008

Authorize.Net Payment Helper dll file for Microsoft.Net - code samples with detailed description

Authorize.Net Payment Helper for ASP.Net and C#

i am going to provide a new helper file for payment gateway integration for Authorize.net. it reduce the coding for programmer. i am using this payment helper for my project and working fine i am also providing help for how to use the dll(Helper) file in your code.

Helper file contain
1 methord
  • PaymentProcess
/*public void PaymentProcess(string cardNumber, string securityNumber, string expirationDate, string amount, string firstName, string lastName, string address, string zipCode, string authUrl, string authApiLogin, string authTransactionKey, string authTestMode);
*/
and 4 properties named
  • TransactionID ( get transaction id of successful payment ).
  • PaymentSuccess ( get message failed or success ).
  • PaymentMessage (get resulting message from Authorize.Net).
  • PaymentStatus( true for success and false for failure).
implimentation
add refference dll (Helper dll) in your bin folder.

using RajusAuthorizeDotNetPaymentHelper;

create object for helper dll

PaymentHelper objPaymentHelper;
objPaymentHelper = new PaymentHelper();

pass parameters for the methord PaymentProcess
after successful payment all properties are listed.

Source code for implimentation
/* public void PaymentProcess(string cardNumber, string securityNumber, string expirationDate, string amount, string firstName, string lastName, string address, string zipCode, string authUrl, string authApiLogin, string authTransactionKey, string authTestMode);*/

objPaymentHelper.PaymentProcess(@"Card number", "securityNumber", "02/2012", "20",
"raju", "m", " test address ", "300019", "https://test.authorize.net/gateway/transact.dll", "API Login ID", "Transaction Key", "FALSE");
Response.Write("
Payment Message: " + objPaymentHelper.PaymentMessage.ToString());
Response.Write("
Payment Status: " + objPaymentHelper.PaymentStatus.ToString());
Response.Write("
Payment Success: " + objPaymentHelper.PaymentSuccess.ToString());
Response.Write("
Payment Transaction ID: " + objPaymentHelper.TransactionID.ToString());


after Successful Transaction
Payment Message: This transaction has been approved.
Payment Status: Success
Payment Success: True
Payment Transaction ID: 2147531580


Download payment Helper file