C# & VB.NET IPN Class

Ease the development when dealing with PayPal's IPN feature with our open source class.
ASP.NET Knowledge Base

Provide your internal or external customers with more detailed information.
Silverlight Media Player

Integrate this open source silverlight media player into your website.
XDev's Blog

Read John's latest posts regarding development and other techie topics.



Download File Now On CodePlex!

Donate for the Class
This class is configured to email the order status to yourself and the customer. This class is 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 |  Projects |  Services |  Contact |  Blog
Copyright 2010 XDev Software, LLC.