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

12 comments:

Anonymous said...

Thank You very much

Anonymous said...

Hi Raju,

I am trying to use RajusAuthorizeDotNetPaymentHelper.dll to make payments. I want to transfer money say from my bank account to my credit card. Is it possible to do this using your dll? If so how can I do so?

The method PaymentProcess takes parameter say “CardNumber”. I believe this card number will be the credit card number to which I want to transfer money. But how can I link the bank account from where I want to transfer the money?


/* 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);*/


Could you please reply as soon as possible?

Thanks,

Regards,
Salaja

Raju.M said...

Hello SB,

Yes, You can possible to transfer money from your bank account to your credit card.This file is a Helper file for Authorize.net payment gateway. you can know more about authorize.net check this link,
Authorize.net. It is a gateway between buyer and seller.
To do so you can create an account in Authorize.net. in that account set your credit card details to receive money from you bank account. but it have some problem you can pay service tax for authorize.net.


Thank you
Raju.M
http://www.makhaai.blogspot.com

Anonymous said...

hello,
i used ur dll and its working. as i am new so i m not getting proper o/p. when i succeeded i will let u know.
thanks

Unknown said...

hi,

I am using SIm method of authorize .net .I am testing this using test account ,when i submit the transaction in authorize .net it is giving me the error like


"An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card."
This transaction has been approved.

It is advisable for you to contact the merchant to verify that you will receive the product or service.



It is not coming back to my site because of that iam not able to get the response

Raju.M said...

send that error code return form authorize.Net

Unknown said...

hi,
Thanq for your reply.

I am not getting any response code from authorize .net .when i am trying to do the transactions with authorize .net it is giving me the message as
"An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card."
This transaction has been approved.

It is advisable for you to contact the merchant to verify that you will receive the product or service.


and remaing in the same site(https://test.authorize.net/gateway/transact.dll) only

I am not able to figure it out

Raju.M said...

did you use my payment Helper file??

Unknown said...

Hi,
In your ddl there is no parameter like which holds the value for return path. My application is like i have to get the response from the payment gateway to the page which we mention but using your dll it is not possible .

Raju.M said...

this is my gtalk Id. raju.rajum@gmail.com

Unknown said...

i want to get complete address of a payer so, what are the request parameters for PAYPAL ???

can u please help i am developing site in C# , Asp.net so,if u can help

Raju.M said...

paypal payment is two types

1:credit card purchase
2:purchase using paypal username and passwrod

1st Methodwe are send all detals of payer to paypal, paypal check these details to payes bank.

2nd Methodpaypal use direct payment using paypal username and password

if u hav any doubt you can ask