Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCode for PayPal Website Payment Pro - Recurring & IPN ListenerCode for PayPal Website Payment Pro - Recurring & IPN Listener
Previous
 
Next
New Post
11/11/2010 6:54 AM
 
I am coding a DNN site in C#, and I need Paypal Recurring Billing using Website payments pro with an IPN Listener.  Paypal's site contains really not detailed examples, and I can't find examples on CodePlex.  Has anyone done this where they can share the source, or know of places where I can get C# source for this model?  If not DNN, I can probably convert it; but DNN code is preferred.

Thanks,
Paul
 
New Post
11/11/2010 7:11 AM
 
Paul

Have you looked here https://cms.paypal.com/us/cgi-bin/?cm...

It contains all examples you want.

Sergey
 
New Post
11/11/2010 7:26 AM
 

Yes, I have spent days pooring through Paypal's website and others.  The best I can find (like the page you pointed me to is...
if (strResponse == "VERIFIED")
{
//check the payment_status is Completed
//check that txn_id has not been previously processed
//check that receiver_email is your Primary PayPal email
//check that payment_amount/payment_currency are correct
//process payment
}
else if (strResponse == "INVALID")
{
//log for manual investigation
}
else
{
//log response/ipn data for manual investigation
}
}
}


Do you see the empty code, and the comments telling you what is missing?   That is the problem.  I need working code for the WebSite Payments Pro IPN handlers, not a shell without any code.  

Any help would be appreciated!

 
New Post
11/11/2010 7:37 AM
 
Paul

You can test your page for IPN here https://developer.paypal.com/us/cgi-b... also you can check what values passes PayPal for you with script like below. So all what you need is to put this code into your page, then go to the Paypal Test IPN and put your URL there. Then you can see what values PayPal sends to you. Full list of fields PayPal passes to IPN you can find here:

https://cms.paypal.com/us/cgi-bin/?cm...

Code:

protected void Page_Load(object sender, EventArgs e)
 {
  string PostInfo = string.Format("Content length:{0}<br/>{1}",
  Request.ContentLength,
  Request.ContentEncoding.GetString(Request.BinaryRead(Request.ContentLength)));
  string GetInfo = "<table border='1' cellpadding='0' cellspacing='0' width='100%'>";
  foreach (string Key in Request.QueryString.AllKeys)
  {
    GetInfo = string.Format("{0}<tr><td>{1}</td><td>{2}</td></tr>", GetInfo, Key, Request.QueryString[Key]);
  }
  GetInfo = string.Format("{0}</table>", GetInfo);

  lblResult.Text = string.Format("POST Info:<br/>{0}<br/><br/>GET Info:<br/>{1}",
  PostInfo,
  GetInfo);
}

Sergey
 
New Post
11/11/2010 7:39 AM
 
Sorry, please replace this code:

lblResult.Text = string.Format("POST Info:<br/>{0}<br/><br/>GET Info:<br/>{1}",
  PostInfo,
  GetInfo);

with code to send this string to your email or to the log file.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCode for PayPal Website Payment Pro - Recurring & IPN ListenerCode for PayPal Website Payment Pro - Recurring & IPN Listener


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out