When a payment is made with an anonymous user (ie the user is NOT logged in on the site), and Visanet returns an error (for example the card is invalid), the error message returned is "There was an error during payment of order number x. Please try again later or contact webmaster", with a link to the order.

However, this link to the order does not work when the user is not logged in, because is points to /user/0/order/x.

I will provide a patch which fixes it by displaying a link to the order only if the user is not anonymous

#1 2124681-order_link-1.patch2.43 KBguillaumev
Members fund testing for the Drupal project. Drupal Association Learn more


guillaumev’s picture

Status: Active » Needs review
2.43 KB

Here is the patch.

marvil07’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Patch looks fine. Please feel free to add it.

  • marvil07 committed b4cf5a8 on 7.x-1.x authored by guillaumev
    Issue #2124681 by guillaumev: Fixed Access denied when viewing order...
marvil07’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.