when using the url method for uc_paypal_buttons, the return and cancel return urls given to paypal create a loop.

Project:PayPal Buttons
Component:Code
Category:
Priority:minor
Assigned:Unassigned
Status:patch (needs review)
Description
Project: 
uc_paypal_buttons

When no success or cancel return urls are specified in the settings of this module, and the method used to initiate the paypal button process is via url (/uc_paypal_buttons/nid/quantity/aid/oid/aid/oid/...), the cancel and success urls default to the same (/uc_paypal_buttons/nid/quantity/aid/oid/aid/oid/...) url it came from.

This creates a loop, because when you go to that url, it goes back to paypal.

This patch addresses that by defaulting the success and cancel urls to the base url of the site, if one is not specified in the settings.

PreviewAttachmentSize
uc_paypal_buttons_issue3.patch740 bytes
detour's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 10/02/2007
Juice: 150
Hi todda00, Thanks for

Hi todda00,

Thanks for reporting this problem. I'll include this fix in an upcoming release.