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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsPayPal Return / Cancel URLsPayPal Return / Cancel URLs
Previous
 
Next
New Post
4/3/2008 9:48 AM
 

Roger Selwyn wrote

Mike,

I'm testing this using Events 3.3.8 on DNN 4.8.2, and can't replicate the problem. I've test using Localhost, which I know you said worked. So also tested using full URL on my test environment. I'm using PayPal sandbox, and then clicking the Return Link on the first paypal page presented. This works fine everytime.

Before you login to PayPal Sandbox, the URL being sent to PayPal should be visble in the address bar. Could you have a look and see what is being passed. It should look something like the link below. I have altered various bits...:-

https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick&business=ptest%40testdom.org.uk&item_name=Events+-+Single+Day+(+1.00+GBP+)&item_number=1&quantity=1&custom=10/04/2008&amount=1.00&currency_code=GBP&return=http://www.testdom.org.uk/338/Home/tabid/36/ctl/PPEnroll/Mid/374/signupid/1/status/enrolled/language/en-GB/Default.aspx&cancel_return=http://www.testdom.org.uk/338/Home/tabid/36/ctl/PPEnroll/Mid/374/signupid/1/status/cancelled/language/en-GB/Default.aspx&notify_url=http%3a//www.testdom.org.uk/338/DesktopModules/Events/EventIPN.aspx&undefined_quantity=&no_note=1&no_shipping=1

If you are using older versions or DNN, it maybe there is a bug in there generating the URL, since it calls a core function (NavigateUrl) to get the return url. I'm not saying it is a core problem, but it is a possibility.

Cheers
Roger

 

Roger, I've done some more testing.  I noticed a couple of things.  In order to use the sandbox, you must be logged into developer.paypal.com first.  When I log into the developer.paypal.com first in another window, and then go through my DNN site with a purchase, it takes me to the sandbox site, but the url is not what you have above, its  "https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=wgydG5waSA5r6Cysr4ivHJQdI8tAGzFTaciB5lRoZGFhfWrnFs6xsyqz8rS&dispatch=5885d80a13c0db1f822cfe4b06d0ea2bc3deaf2f87c377c27f201b3d9033ed5c"

Now if I stay logged out of developer.paypal.com and go through my DNN site with a purchase, it takes me to a paypal sandbox site, but says "To access the Paypal sandbox, please login to Paypal Developer Central"  and the url at the top of my browser shows what you said should be up there.  Of course, at this point if I log in, I lose all that information in the url.

kind of a catch-22, it works if I stay logged out of developer.paypal.com, but i can't get into the sandbox to test.  If I sign in to developer.paypal.com, I can test my sandbox, but the url from dnn gets screwed up.   I suppose  this will work fine when I'm using the real paypal, and not the testing evironment, but by not being able to test it, my confidence isn't at 100%

still, its weird that this would work on my local test and not my live test

 
New Post
4/3/2008 10:11 AM
 

I noticed on my local site, that when I click purchase, and I'm already logged in the developer.paypal.com, I'm taken to the sandbox site, and the url is "https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=wgydG5waSA5r6Cysr4ivHJQdI8tAGzFTaciB5lRoZGFhfWrnFs6xsyqz8rS&dispatch=5885d80a13c0db1f822cfe4b06d0ea2bc3deaf2f87c377c27f201b3d9033ed5c" just like it is above on my livce site, but if I hit the return button it works fine.  Nto sure why it works in one and not the other even though the urls appear to be acting the same way...

 
New Post
4/3/2008 11:39 AM
 

Mike,

I guessing at what is happening. When not logged into the sandbox, the URL isn't processed at all by PayPal. When you are logged in, it will be processed as if it was on live. PayPal is altering the URL and storing the information from it (presumably on a database, since they undoubtedly have a farm of servers), using the session/dispatch keys in the new url as a key to the data.

My point of checking the URL prior to logging into the sandbox, is to make sure all three URL's passed are correct (Return/Cancel/Notify). If they are, then the problem would appear to be at the PayPal end. If they aren't, then the problem is at your website end (Event module or Core). You can of course set this up on a production paypal site, as long at you can afford the cost of PayPal payments at about £0.21 to do the test. Just keep it secured from your end users.

If you want I can have a look at your live test site. Mail me on dnn at my lastname dot org dot uk

Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
4/14/2008 12:10 AM
 

This is a basic question, but is the only way to get the paypal registration working to change the code?   I have changed the processor link under Host - Lists, to no effect. 

I would like to enable this on my site, but I would like to test it first to see if it is working - any information would be appreciated.

Thanks!

 
New Post
4/14/2008 2:39 AM
 

Are you having the same problem detailed here, where the return/cancel URLs are wrong? I tried to replicate this on a test site with Mike's help, so I could fix it, but couldn't replicate. If you can detail exactly how your site is set up, I can try to replicate again.

In any case you can test by changing the processor url in the Event Module settings under Enrollment Settings to www.sandbox.paypal.com. You will need to sign up for a developer account on the sandbox, but it's fairly easy to use.

Cheers
Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsPayPal Return / Cancel URLsPayPal Return / Cancel URLs


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