For about a year I have been trying to figure out why the previously fine shipping insurance contribution suddenly stopped working with PayPal, and only with PayPal - it continues to work without any problems with all other modules.
Finally I have found the answer buried on the PayPal website, and a confirmation that it broke due to changes made at eBay.
The full text of the PayPal reasoning is here - https://ppmts.custhelp.com/cgi-bin/p...hp?p_faqid=465
The key info is at the bottom of the page (the very bottom) -
"Note that there is no variable in either for insurance.
Insurance would be lumped into shipping or handling charge infusing upload cart. With eBay checkout, the individual payment amounts, shipping, tax and insurance will be lumped into 'mc_gross'."
Currently the Shipping Insurance contrib uses the osC order_total modules aggregator, with no parameter for the insurance value to be passed separately to any payment module - this is why it no longer functions with PayPal.
To function with PayPal, the ot_insurance file needs to create a $value for the insurance amount, and the paypal_ipn files need modified to add that value to either the handling or shipping total, or to the mc_gross total invoice value passed to PayPal.
The $value parameters need created ONLY for the PayPal modules, all other modules continue to work correctly without it.
Unfortunately this coding is a bit beyond me, though I could probably cobble it together with some trial and error, but unfortunately do not have a test site with which to do this. I am passing this information along in the hope that someone can create the fix.
The attached file contains only the relevant bit of the PayPal page for info purposes - it contains no code from the contrib.
More...





LinkBack URL
About LinkBacks









Bookmarks