Event Calendar Pro - Can't get "Allow Ticket Purchase Without Authentication" to work

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/27/2012 6:31:21 AM
Gravatar
Total Posts 18439

Re: Event Calendar Pro - Can't get "Allow Ticket Purchase Without Authentication" to work

That is strange. I see the problem on your site but I cannot seem to make that problem happen here.

If you go to Administration > System Information

what version does it say for Event Calendar Pro?

Are you sure that you have no other settings anywhere for any other payment gateways?

 

11/27/2012 6:43:21 AM
Gravatar
Total Posts 18439

Re: Event Calendar Pro - Can't get "Allow Ticket Purchase Without Authentication" to work

In the Settings do you have "All Users" set as Roles Allowed to Register with Promise To Pay Later?

With that setting I can replicate the problem, but I would not recommend that configuration.

11/27/2012 10:23:38 AM
Gravatar
Total Posts 39

Re: Event Calendar Pro - Can't get "Allow Ticket Purchase Without Authentication" to work

Thanks. Un-checking that did the trick for anonymous users. However, FYI, the customer information form still appears when I'm signed in to the site. That's not a show-stopper for us as our ticket buyers won't be authenticated users. We've never used the Promise to Pay Later functionality, so I'm not sure why All Users was checked.

I ran into another issue, however. I can successfully buy a ticket as an anonymous user and pay through PayPal. The payment information gets sent back to mojoPortal. However, instead of getting the Order Details page, I'm getting an Access Denied message. It looks like when an anonymous user buys a ticket, they don't have access to view their order details (e.g.: http://www.anchorcenter.org/Events/OrderDetail.aspx?pageid=75&mid=109&orderid={order-id-here}).

11/27/2012 10:35:08 AM
Gravatar
Total Posts 39

Re: Event Calendar Pro - Can't get "Allow Ticket Purchase Without Authentication" to work

On a related note, the system is using the non-anonyous confirmation e-mail template even though I'm checking out anonymously.

(I thought for a moment it was because I was checking out anonymously with the same e-mail address as my mojoportal account, but I'm actually using two different addresses.)

11/27/2012 3:04:49 PM
Gravatar
Total Posts 18439

Re: Event Calendar Pro - Can't get "Allow Ticket Purchase Without Authentication" to work

Hi,

I think both results are related. The anonymous notification would not have an order detail link. I think what happened in your case is at some point you were logged in and therefore the UserGuid on the cart was populated and remained populated even though you subsequently logged out therefore it sent you the authenticated notification that does have an order detail link but since you were not logged in (or were logged in as a different user) when you clicked the link that page was not allowed. Logging out does not clear the userguid on the cart so it remembers you after that unless you login again as a different user in which case the userguid would get updated to the currently logged in user. The cookie should be a session cookie so if you close the browser it should no longer be valid and a new cart would be established on the next browser session.

I think if you try it without ever logging in you will see it works correctly and there is no link to the order detail in the notification, the email itself is the only notification if we don't have a user attached to the order. As long as we do have a userguid populated we try to keep that so that the order can appear in the user's order history.

I will fix the problem where the form is showing if authenticated, it should not do that if there are no roles allowed to promise to pay later. I'll put out an update for that very soon and post again on this thread when it is ready.

Best,

Joe

11/27/2012 3:10:27 PM
Gravatar
Total Posts 18439

Re: Event Calendar Pro - Can't get "Allow Ticket Purchase Without Authentication" to work

I should add that even though the cookie would be expired by closing the browser, if you ever were logged in and your userguid was on the cart, that existing cart in the database would be revived for you if you log in again and don't already have a cart cookie from another new cart created while anonymous, the new cart cookie would have the id of the existing cart that you had before if it was not a completed order.

So to really test an anonynmous user you should close the browser after logging out to expire your cart cookie, then start a new browser session as an anonymous user and it should get a new clean cart and cookie.

Best,

Joe

11/27/2012 3:16:35 PM
Gravatar
Total Posts 18439

Re: Event Calendar Pro - Can't get "Allow Ticket Purchase Without Authentication" to work

One more update on this. The bug where the form is shown does not happen for all authenticated users, it only happens for Admins so it is more of a minor bug than I initially thought. Authenticated users who are not admins and who are not in any roles allowed to promise to pay later will not see it.

Best,

Joe

11/27/2012 3:43:53 PM
Gravatar
Total Posts 39

Re: Event Calendar Pro - Can't get "Allow Ticket Purchase Without Authentication" to work

Ok, thanks for helping me work through this.

Based on your suggestion, I tested using a fresh incognito Chrome window (so no cookies) and processed another order. This time, I did get the correct anonymous notification. However, I still got an Access Denied error when PayPal redirected me back to the mojoPortal site. It looks like mojoPortal's IPN handler redirected to OrderDetail.aspx and that resulted in an Access Denied.

I believe (but am not certain) that in an earlier version, anonymous users could see the Order Confirmation screen for their order after PayPal sends them back to the mojoPortal site. If that's not the expected behavior, it seems they should be redirected to somewhere other than OrderDetail.aspx if it's going to throw an Access Denied.

 

11/27/2012 4:19:23 PM
Gravatar
Total Posts 18439

Re: Event Calendar Pro - Can't get "Allow Ticket Purchase Without Authentication" to work

Hi,

I agree with you and will look into this tomorrow and follow up after that.

I think the problem is we don't really want to show a result of an order from an anonymous user. If the user comes back to the site we don't know its the same user if its an anonymous request so to be able to show anything we'd have to be wide open where any request could view any order that isn't attached to a site user, all anonymous orders would be queryable by url params by all unauthenticated visitors. So the email has to be the only order confirmation.

I'm thinking we would either have to just redirect to the site home or maybe the page that has the calendar on it.

Best,

Joe

11/27/2012 5:32:12 PM
Gravatar
Total Posts 39

Re: Event Calendar Pro - Can't get "Allow Ticket Purchase Without Authentication" to work

Thanks. I understand your concerns regarding allowing open access to order details. I guess the order id provides security through obscurity, but that's probably not sufficient. Given that, I think it would be best if  users were brought back to the calendar page. Ideally, it would be nice if the system displayed a brief status message (i.e. "Your order has been successfully processed"), so the user knows their order was successful. I could see some confusion if they just get dumped back to the site with no message.

The Anchor Center is itching to start marketing events that are sold using Event Calendar Pro, so if you can provide a quick fix for the Access Denied issue, it would be much appreciated.

Thanks,

Kevin

11/27/2012 6:12:10 PM
Gravatar
Total Posts 39

Re: Event Calendar Pro - Can't get "Allow Ticket Purchase Without Authentication" to work

FYI -- I was able to hack a work-around by using the 301 Redirect Manager to redirect events/OrderDetail.aspx to a generic order confirmation page I created. This should do in a pinch.

You must sign in to post in the forums. This thread is closed to new posts.