PayPal IPN ASP.NET C# and PayPal IPN ASP.NET VB.NET Class and Sample
ASP.NET C# Sample
The zip file includes PPIPN.cs, IPNProcess.aspx, and IPNProcess.aspx.cs

Remember this code is provided as is and we don't take any responsibility for your use of it.

Download File Now!

ASP.NET VB.NET Sample
The zip file includes PPIPN.vb, IPNProcess.aspx, and IPNProcess.aspx.vb

Remember this code is provided as is and we don't take any responsibility for your use of it.

Download File Now!

Donate for the Class
This class is configured to email the order status to yourself and the customer. This class is totally customizable because you are getting the source code. We all know every situation is different. You can think of this as a starter class for PayPal IPN, or a solution..depending on what you are doing with the IPN feature. This website uses the exact code that you are downloading to handle the PayPal transactions.


This class allows for the following variables to be collected:

"address_city"
"address_country"
"address_country_code"
"address_state"
"address_status"
"address_street"
"address_zip"
"first_name"
"last_name"
"payer_business_name"
"payer_email"
"payer_id"
"payer_status"
"contact_phone"
"business"
"item_name"
"item_number"
"quantity"
"receiver_email"
"receiver_id"
"custom"
"memo"
"invoice"
"tax"
"num_cart_items"
"payment_date"
"payment_status"
"payment_type"
"pending_reason"
"txn_id"
"txn_type"
"mc_fee"
"mc_gross"
"notify_version"
"verify_sign"


Below is the following C# code that you need to add in your Page_Load or wherever you would like to add it on your page that processes the IPN.

PPIPN objPP = new PPIPN("LIVE");
//PPIPN objPP = new PPIPN("TEST");
//PPIPN objPP = new PPIPN("ELITE");

objPP.FromEmail = "email@yourdomain.com"; //email address your smtp server will accept
objPP.FromEmailPassword = "yourpassword"; //password for the email address above
objPP.SmtpHost = "yourSMTPHost";
objPP.SmtpPort = "SMTPHostPort";
objPP.ToEmail = "youremailatPayPal@domain.com";//this needs to be your business/email you have registered with PayPal
objPP.MakeHttpPost();
objPP.CheckStatus();

Home | Solutions | Products | In The Community | Blog | Contact >

Copyright 2008 XDev Software, LLC.