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!
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | uc_paypal_buttons_retry.patch | 1.34 KB | abowers |
Comments
Comment #1
abowers commentedI'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!
Comment #2
arithmetric commentedThanks 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.