I am using the option of "Reattempt payment request on failure", however, it seems to be cancelling the user's subscription on the first failure - PayPal doesn't seem to be retrying this. Is there something else that I should be setting up or is this working for others?

Thanks!

CommentFileSizeAuthor
#1 uc_paypal_buttons_retry.patch1.34 KBabowers

Comments

abowers’s picture

StatusFileSize
new1.34 KB

I've looked into this a bit, and it looks like this module is sending 'retry' instead of 'sra' as PayPal expects, see https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=develo....

Maybe they've changed the api. In any case, I ended up making some changes that allow 'sra' to be sent on the url, however, it doesn't seem to turn off when you disable the retry setting in the product feature. This is fine for our needs, but probably not a good idea in general! I've attached the patch so that someone with more knowledge can take a look. I was curious if line #713 is incorrect, and if 'retry' should be changed to 'sra' also in the $form_state. Not sure if it is an issue in my code changes or in my testing practices!

arithmetric’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Component: Miscellaneous » Code
Status: Active » Fixed

Thanks for reporting this. I noticed in the PayPal documentation that the default setting for the "reattempt payment request on failure" option is enabled/on. So I modified your change slightly to show that this is enabled by default and ensure that the setting can be disabled. This fix will be included in the next development and stable release.

Status: Fixed » Closed (fixed)

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