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 ExtensionsModulesModulesCoding PayPal Into DNN - Two Questions (IPN Handling & HTTPS)Coding PayPal Into DNN - Two Questions (IPN Handling & HTTPS)
Previous
 
Next
New Post
2/21/2011 9:21 PM
 
I am working to code PayPal into DNN.  I have written and installed modules with no issue but the art of PayPal IPN handling and HTTPS sending are new to me.  I spent 3 hours scanning the web looking to see if anyone has coded for Web Payment Pro from PayPal in DNN.  No luck, so I am going to ask my questions here:

1) I have written the PayPal IPN and ASPX, but I have no idea how to install it.  I have no idea what address to give PayPal to talk to my IPN.  Can someone give me a step by step and comments to help me?

2) I have written 5 out of 8 NVP API's for sending my requests to PayPal in (Website Payments Pro Mode), but I have not installed them.  They test out OK into the Sandbox, but I am not running HTTPS.  I do not know how to do that or the issues I will run into for HTTP + HTTPS.   Any help so I can start doing HTTPS?

Paul
 
New Post
2/21/2011 11:05 PM
 
Paul Johnson wrote:
I have written the PayPal IPN and ASPX, but I have no idea how to install it.  I have no idea what address to give PayPal to talk to my IPN.  Can someone give me a step by step and comments to help me?

 If it's just a regular APSX page (and not a User Control - ASCX) then you can simply place it in the root of the DNN Install along with Default.aspx

The URL would be something like this: http://www.yoursite.com/IPN.aspx (where IPN.aspx is the page name)


Mandeep Singh
CEO - Mandeeps.com | Developing DotNetNuke Modules Since 2004
DNN Monitor | DotNetNuke Keep Alive Service
 
New Post
2/22/2011 4:21 AM
 
Mandeep Singh wrote:
Paul Johnson wrote:
I have written the PayPal IPN and ASPX, but I have no idea how to install it.  I have no idea what address to give PayPal to talk to my IPN.  Can someone give me a step by step and comments to help me?

 If it's just a regular APSX page (and not a User Control - ASCX) then you can simply place it in the root of the DNN Install along with Default.aspx

The URL would be something like this: http://www.yoursite.com/IPN.aspx (where IPN.aspx is the page name)

 Mandeep,
That is a good start.  I have renamed my ASCX file to ASPX, but I have three questions:

1) I am now getting an error in my ASPX file that says NewLine in Constant.  There is only one line and it reads:
<%@ Control language="C#" Inherits="MyWeb.Modules.Payments.View" AutoEventWireup="false"  Codebehind="IPNi.aspx.cs" %>

2) How and where does it know to run my compiled version of the codebehind?

3) Are there any security issues?

Finally any help on HTTP vs HTTPS (my second question from the first message? Anyone?

 
New Post
3/2/2011 5:05 AM
 

1) Please check module development. I use WAP but you might use the default development module by which you place your code in the App_Code dir. You code goes either in a class in this directory or in the project for WAP. Once you compile the code is hit from your code to the code behind.
2). https/ http is working for us. I guess you can use https for Paypal and have your site run insecure. But it is not recommended and maybe even not allowed by paypal. You need to check the admin settings where the https is defined (SSL) and turn it on. Then enable on each tab the 'enable / secure' setting to true. Then that page will be rewritten to https automatically. You can set it for your login and register pages so that they are secure as well. Then the user of paypal goes back to a tab page in DNN which you also set secure. If you receive a postback from the server (not over the client of paypal) you need to add a empty aspx page which handles the logic.

for us:
Server: serverresponseOfPaypal.aspx (in root of website to avoid long names with querystring params of payment provider). Is called with https:
Client: Checkout.aspx of DNN if also called with https

Take notice to code with relative paths like /image.jpg in your https pages. Otherwise your browser will popup insecure message warnings that there are non-https url's on a https page.

J.
 
New Post
3/2/2011 7:12 AM
 
J, Your information on both helps. I realized by your response to #2 that I was not clear about my question. I am writing an API to PayPal that I believe should send HTTPS (SSL). The examples I have to code from are sending HTTP. Your supplying information about enabling pages for SSL is very helpful, but my questions is how do I code a API to another site as SSL? Or is the fact the are not examples that I do not need to code it in SSL? Thanks, Paul
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCoding PayPal Into DNN - Two Questions (IPN Handling & HTTPS)Coding PayPal Into DNN - Two Questions (IPN Handling & HTTPS)


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