Jump to content

Technocrat's Content

There have been 4 items by Technocrat (Search limited from 22-Sep 19)


Sort by                Order  

#170516 PayPal issue after 3.0.5 to 3.0.6 upgrade

Posted by Technocrat on 28 October 2013 - 10:51 PM in Installation & Upgrade

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'];



#170504 Custom preset crashes

Posted by Technocrat on 28 October 2013 - 09:14 PM in Issues & Troubleshooting

I have found that with 4.0.2 if I save a custom preset on the themes the site will crash and give me a white screen. I then have to go in the phpmyadmin and reset it back to default.

I see something similar here:
http://forum.cs-cart...post__p__169969

Any idea what is going on?



#159637 PayPal issue after 3.0.5 to 3.0.6 upgrade

Posted by Technocrat on 08 April 2013 - 10:43 PM in Installation & Upgrade

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



#159560 PayPal issue after 3.0.5 to 3.0.6 upgrade

Posted by Technocrat on 07 April 2013 - 07:36 PM in Installation & Upgrade

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