Forums / PayPal RESTful support / The required notifications in the order_total.php class were not applied

The required notifications in the order_total.php class were not applied

Views: 1,638

Results 1 to 9 of 9
24 Feb 2025, 6:23 PM
#1
andy_77 avatar

andy_77

New Zenner

Join Date:
Apr 2023
Location:
UK
Posts:
64
Plugin Contributions:
0

The required notifications in the order_total.php class were not applied

Just tried out the PayPal Restful module, and on the checkout, when you go to make the payment, the following error message is generated:

The required notifications in the order_total.php class were not applied; the payment module cannot place orders. The payment module has been automatically disabled.

The plugin module then turns itself off, and enable this plugin module status changes from true to false.

have double checked all the settings within the module, and all appear ok.

Not sure if anyone else has experienced this, and if so, if they managed to find what was causing the issue?

Kind Regards,

Andy

24 Feb 2025, 7:33 PM
#2
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,807
Plugin Contributions:
22

Re: The required notifications in the order_total.php class were not applied

Did you read the instructions for installing it? If your site is an upgrade from an older version, perhaps the required changes weren't applied to these files?

Check these files and make sure you have the exact same code as what's been highlighted. If there's any differences, apply the changes and you should be fine.

My site - Pro ZC Help
My portfolio | My plugins

25 Feb 2025, 8:58 AM
#3
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: The required notifications in the order_total.php class were not applied

Simon

25 Feb 2025, 4:35 PM
#4
andy_77 avatar

andy_77

New Zenner

Join Date:
Apr 2023
Location:
UK
Posts:
64
Plugin Contributions:
0

Re: The required notifications in the order_total.php class were not applied

Read all the instructions before installation, and read through the forum too.

Managed to get somewhere today with this.

Can get through to PayPal and complete the checkout, but as soon as this happens, you get returned to the website with a 404 page error, and the transaction doesn't complete.

No errors in the logs.

Only thing in the logs is a log with the curlpost request was successful (200), which also shows in our PayPal account under API calls > HTTP status 200 ok request path successful request.

Kind Regards,

Andy

25 Feb 2025, 6:11 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: The required notifications in the order_total.php class were not applied

andy_77:

Read all the instructions before installation, and read through the forum too.

Managed to get somewhere today with this.

Can get through to PayPal and complete the checkout, but as soon as this happens, you get returned to the website with a 404 page error, and the transaction doesn't complete.

No errors in the logs.

Only thing in the logs is a log with the curlpost request was successful (200), which also shows in our PayPal account under API calls > HTTP status 200 ok request path successful request.

Kind Regards,

Andy
I'm guessing that you failed to copy the root-directory file: ppr_webhook_main.php.

It should be in the same directory as ipn_main_handler.php

26 Feb 2025, 1:32 PM
#6
andy_77 avatar

andy_77

New Zenner

Join Date:
Apr 2023
Location:
UK
Posts:
64
Plugin Contributions:
0

Re: The required notifications in the order_total.php class were not applied

Thanks Lat9,

Really appreciate your help.

Well spotted!

You were correct.

I'd failed to copy this file across.

Copy the file across and the checkout is working now, but it only works if you select PayPal, as the payment option.

If you select the credit card option to make the payment, the order doesn't complete, and the following warning message is displayed on the checkout page "An error occurred when we tried to process your credit card. Please try again, select an alternate payment method or contact us for assistance."

Have tried quite a few times, also with "enable SCA always" ticked and also unticked.

No errors in the logs.

Not sure if I've missed anything obvious?

Have been through the forum, to see if I can find anything that may help.

Not sure if anyone can think of anything obvious that I may have missed?

Kind Regards,

Andy

26 Feb 2025, 5:28 PM
#7
andy_77 avatar

andy_77

New Zenner

Join Date:
Apr 2023
Location:
UK
Posts:
64
Plugin Contributions:
0

Re: The required notifications in the order_total.php class were not applied

All sorted now.

Thanks for all the support.

27 Feb 2025, 11:17 AM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: The required notifications in the order_total.php class were not applied

andy_77:

All sorted now.

Thanks for all the support.

What was the fix? Capturing that now helps you in the future if it happens again and helps others if or when they get the same response.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

28 Feb 2025, 6:23 PM
#9
andy_77 avatar

andy_77

New Zenner

Join Date:
Apr 2023
Location:
UK
Posts:
64
Plugin Contributions:
0

Re: The required notifications in the order_total.php class were not applied

It just started working; I didn't make any other changes, after uploading the file that I missed originally.