Jump to content

 

Technocrat

Member Since 28 Jun 2012
Offline Last Active Jan 29 2014 06:39 PM
-----

Posts I've Made

In Topic: PayPal issue after 3.0.5 to 3.0.6 upgrade

28 October 2013 - 10:51 PM

Fix for v4

app/payments/paypal.php

Note that you need to change email@yourdomain.com to your paypal email address

Find:


if ($_REQUEST[$account_type] != $processor_data['processor_params']['account']) {

Replace:
if ($_REQUEST[$account_type] != $processor_data['processor_params']['account'] && $_REQUEST[$account_type] != 'email@yourdomain.com') {


Find:
$paypal_post[$account_type] = $processor_data['processor_params']['account'];
Replace:

$paypal_post[$account_type] = ($_REQUEST[$account_type] != $processor_data['processor_params']['account']) ? 'email@yourdomain.com' : $processor_data['processor_params']['account'];

In Topic: PayPal issue after 3.0.5 to 3.0.6 upgrade

08 April 2013 - 10:43 PM

I should also add:
$paypal_post[$account_type] = $processor_data['params']['account'];
Change to
$paypal_post['receiver_email'] = 'foo@bar.com';

In Topic: PayPal issue after 3.0.5 to 3.0.6 upgrade

07 April 2013 - 07:36 PM

Ok so I figured out the issue and it seems to be an issue with a number of cart programs. I purposed a fix on the issue tacker.

However if you want to get around it you can do my suggested change, but instead of $processor_data['params']['primary_email'] use your primary PayPal email address.

So (this assumes you have made the fix already suggested in the tracker) replace:
if ($_REQUEST[$account_type] != $processor_data['params']['account'])
With
if ($_REQUEST[$account_type] != $processor_data['params']['account'] && $_REQUEST['receiver_email'] != 'foo@bar.com')
Note that the email address is in quotes