Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Paypal Standard Need some major Help

Paypal Standard Need some major Help

Views: 1,619

Results 1 to 8 of 8
10 Nov 2013, 6:12 PM
#1
hfxracing avatar

hfxracing

New Zenner

Join Date:
May 2011
Location:
Nova Scotia
Posts:
39
Plugin Contributions:
0

Paypal Standard Need some major Help

I have been looking all over the forums for a answer to this but I have not found it.

When selecting paypal Standard payment at check out the confirm Order button is disappearing. It's really odd if I add each item all by itself using the customers address the button is there as I add extra items to it the button is disappearing.

My error log says
[10-Nov-2013 12:51:31] PHP Fatal error: Function name must be a string in /home/hfxracin/public_html/includes/modules/payment/paypal/paypal_functions.php on line 919

The products that I have found the issue with so far are:
DIEN6488-4 Qty 1
DIEN6488-6 Qty 1

After adding this second item the button will disappear. I am not sure where the problem is or if it is effecting other items on my cart.
https://www.hfxracing.com is the site

All help is welcomed

10 Nov 2013, 7:47 PM
#2
hfxracing avatar

hfxracing

New Zenner

Join Date:
May 2011
Location:
Nova Scotia
Posts:
39
Plugin Contributions:
0

Re: Paypal Standard Need some major Help

Since I posted this I uploaded all new paypal files from the the 1.51 core download. Then uninstalled the standard payment module then re installed it set it all up & verified that the token IPN handler & re-direct back to my site was correct to the proper configuration but if still a no go.
I installed express checkout for testing & set that up I then have no issues so it's not the items. I like the detailed list of items the standard module sends to paypal that is why I am using it.

12 Jan 2014, 8:24 PM
#4
hfxracing avatar

hfxracing

New Zenner

Join Date:
May 2011
Location:
Nova Scotia
Posts:
39
Plugin Contributions:
0

Re: Paypal Standard Need some major Help

sorry this will fix the standard correct?

13 Jan 2014, 7:50 AM
#5
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Paypal Standard Need some major Help

hfxracing:

sorry this will fix the standard correct?

Sorry, but if you clicked the link you wouldn't have a need to ask this question.


**CHANGE-605 - Fix error in PayPal Standard
**

23 Feb 2015, 7:59 PM
#6
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Paypal Standard Need some major Help

PHP Fatal error: Function name must be a string in /includes/modules/payment/paypal/paypal_functions.php on line 919

The link points to github Change 605 where this is posted:

replace this line:
$this->zcLog('getLineItemDetails 6', 'Discounts have caused the subtotal to calculate incorrectly. Line-item-details cannot be submitted.' . "\nBefore:" . print_r($pre, TRUE) . "\nAfter:" . print_r(array_merge($optionsST, $optionsLI), true));

with this line:
ipn_logging('getLineItemDetails 6', 'Discounts have caused the subtotal to calculate incorrectly. Line-item-details cannot be submitted.' . "\nBefore:" . print_r($pre, TRUE) . "\nAfter:" . print_r(array_merge($optionsST, $optionsLI), true));

which looking through the code may be missing $ in front of ipn_logging, or it may not be - some references of ipn_logging have the $ some don't.

Even with the $ added this does not resolve the disappearing Confirm the Order button error for PayPal Standard. All other payment modules are working properly.

23 Feb 2015, 8:10 PM
#7
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Paypal Standard Need some major Help

Correction... the entire /includes/modules/payment/paypal/paypal_functions.php needs it's calls to ipn_logging updated from $ipn_logging to ipn_logging without the $

FIX - Remove the **$ **from all instances of **ipn_logging **and Confirm the Order button has returned and processes correctly to PayPal.

23 Feb 2015, 8:52 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Paypal Standard Need some major Help

twitchtoo:

PHP Fatal error: Function name must be a string in /includes/modules/payment/paypal/paypal_functions.php on line 919

The link points to github Change 605 where this is posted:

replace this line:
$this->zcLog('getLineItemDetails 6', 'Discounts have caused the subtotal to calculate incorrectly. Line-item-details cannot be submitted.' . "\nBefore:" . print_r($pre, TRUE) . "\nAfter:" . print_r(array_merge($optionsST, $optionsLI), true));

with this line:
ipn_logging('getLineItemDetails 6', 'Discounts have caused the subtotal to calculate incorrectly. Line-item-details cannot be submitted.' . "\nBefore:" . print_r($pre, TRUE) . "\nAfter:" . print_r(array_merge($optionsST, $optionsLI), true));

which looking through the code may be missing $ in front of ipn_logging, or it may not be - some references of ipn_logging have the $ some don't.

Even with the $ added this does not resolve the disappearing Confirm the Order button error for PayPal Standard. All other payment modules are working properly.

twitchtoo:

Correction... the entire /includes/modules/payment/paypal/paypal_functions.php needs it's calls to ipn_logging updated from $ipn_logging to ipn_logging without the $

FIX - Remove the **$ **from all instances of **ipn_logging **and Confirm the Order button has returned and processes correctly to PayPal.
Yes, in v1.5.4 the only place where the $ is mistakenly in front of ipn_logging() is on line 919 of paypal_functions.php (other references are commented-out lines, so not relevant)
And that would only ever trigger an error if using the PayPal Standard module instead of the recommended PayPal Express Checkout module.
Thanks. Will report it as a bug.

So, solution is either: use Express Checkout (recommended fix), or make the small coding change.