-
- Downloads
[FIX] payment_paypal: accept PDT requests on /dpn route
It seems Paypal does not always send the same responses on auto-return even when PDT is off. Although not reproducible on a Paypal sandbox, sometimes the system auto-return to /payment/paypal/dpn without any meaningful POST data. This seems to only happen with new accounts that use the 'Hermes' web application of Paypal. The correct thing to do would be to add a new field on the paypal payment provider for PDT token and make the PDT flow available to users; but this is a stable branch and this fix is already sufficiently delicate. This shall be done in master though. From this revision on, users can then activate PDT on their paypal account, set the PDT token as an ir.config_parameter value (WITH GROUP RESTRICTION SET TO ADMIN/SETTINGS GROUP!!!) and the system will process these requests correctly.
Please register or sign in to comment