Warning: The author of this contribution does not provide support for it anymore.

Paypal Donation MOD

Logout on Cancel - Paypal Donation MOD

Logout on Cancel

by Steevo25 » Mon Feb 23, 2015 11:55 am

Hi All,

I have just installed this modification on a new forum created. At the same time a PayPal business account was setup and verified working.

The MOD appears to have installed ok with no errors from AutoMod and everything has been setup in ACP including permissions. The board is running version 3.0.12 of phpBB.

I tried testing the mod and at first just used a donation of £1. It transferred me to PayPal with all the correct details showing on the screen. Whenever I try to donate, it declines what ever credit card or PayPal account I try even though I know the cards are valid as I have made transactions afterwards.

When I click the 'Cancel and return to site' link on the PayPal page, it returns to the forum but I get a 'Not authorised to access this area' message and I am logged out the forum.

Any help would be much appreciated.
Steevo25
Registered User
Posts: 3
Joined: Mon Feb 23, 2015 11:47 am

Re: Logout on Cancel

by Skouat » Thu Feb 26, 2015 5:03 pm

Hi,

Please, can you provide your board url? and a test account, if needed.

Regards
Skouat
Code Contributor
Posts: 1055
Joined: Mon Mar 10, 2008 5:30 pm
Location: France

Re: Logout on Cancel

by Steevo25 » Thu Feb 26, 2015 5:21 pm

Just a little more information. After further testing it only seems to happen on the later versions of Internet Explorer. It's working perfect with all the other browsers I have tried. It seems that when you go to the PayPal site and then it returns you to the forum, it forgets who is logged in. I have tried it on a few different PCs so I could prove it wasn't a faulty install of Internet Explorer.

The payment goes ahead just fine but when the 'cancel' or 'success' page is called, it just says 'You are not authorised to access this area' and you then have to login again.

Temporarily, I have changed the authorisation check in the donate script so that 'cancel' or 'success' is checked before the authorisation. This at least lets donators see the success page or the cancel page. But it doesn't solve the problem of being logged out.
Steevo25
Registered User
Posts: 3
Joined: Mon Feb 23, 2015 11:47 am

Re: Logout on Cancel

by Skouat » Thu Feb 26, 2015 5:40 pm

Hi,

Skouat wrote:Please, can you provide your board url?

:roll: ;)

Steevo25 wrote: But it doesn't solve the problem of being logged out.

In most case, If your are logged out it may be due to a bad cookie setting.
Skouat
Code Contributor
Posts: 1055
Joined: Mon Mar 10, 2008 5:30 pm
Location: France

Re: Logout on Cancel

by Steevo25 » Thu Feb 26, 2015 7:03 pm

Thank you and sorry I forgot to post the URL.

The website is http://www.jabiruownersgroup.org

I have setup a test account which is username and password of skouat.

You will see that using Internet Explorer 11, when you go to PayPal and then click cancel, you will be logged out when you return.

I now do not believe this to be the mod. I think it is some security setting in IE11 but I cannot reproduce it in any other circumstances other than donating from the website. I also cannot reproduce this in any other browser.
Steevo25
Registered User
Posts: 3
Joined: Mon Feb 23, 2015 11:47 am

Re: Logout on Cancel

by Skouat » Thu Feb 26, 2015 11:15 pm

I must try to update my MOD to a new release.
Some bugs have been fixed and it seems this error is not present the latest version.
I have to do some additional tests to confirm that the bug is fixed.

Thanks for this report.

(you can disable/remove the test account)
Skouat
Code Contributor
Posts: 1055
Joined: Mon Mar 10, 2008 5:30 pm
Location: France