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
10/15/2007 11:44 AM
 

I'm trying to test PayPal usage with the events module, but the PayPal return and cancel URLs are not working correctly.

The URLs being passed to PayPal are missing the domain name, and just have the following:

"/MySite/MyPage/tabid/54/ctl/PPEnroll/Mid/373/signupid/79/status/enrolled/Default.aspx"
"/MySite/MyPage/tabid/54/ctl/PPEnroll/Mid/373/signupid/79/status/cancelled/Default.aspx"

When I click on the return buttons in the PayPal site, the browser tries to go to www.sandbox.paypal.com/<return or cancel url> instead of (in my case) localhost:<portnumber>/<return or cancel url>

Is there something I am missing that is preventing the domain name (localhost) from being added to the URLs?

 
New Post
10/15/2007 3:05 PM
 

I got this working by changing the original line

Dim returnURL As String = NavigateURL(TabId, "PPEnroll", "Mid=" & ModuleId, "signupid=" & CType(objEventSignups.SignupID, String), "status=enrolled")

to

Dim returnURL As String = AddHTTP(GetDomainName(Request)) & NavigateURL(TabId, "PPEnroll", "Mid=" & ModuleId, "signupid=" & CType(objEventSignup.SignupID, String), "status=enrolled")

Unless there is still something I am missing, this is a bug that the developers should be aware of.

 
New Post
4/2/2008 4:05 PM
 

I'm having somewhat of the same problem...Mine was working fine when I was testing it on a local host, but now I'm testing it on the live site, and when I hit the return button in paypal, it loads "http://www.sandbox.paypal.com/(the rest of the return url)" instead of the correct website...any ideas?

 
New Post
4/2/2008 5:15 PM
 

I've posted this in Gemini here - http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=7278&PROJID=11 - I'll try and validate tomorrow.

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/3/2008 5:52 AM
 

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


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