Troubleshooting An Error Occurred when making PayPal payments

Symptom

After applying the 7.10.1 update, clients may experience an error message making a payment via the new PayPal module in certain circumstances:

An Error Occurred

This occurs when:

  • The server PHP serialize_precision setting is customised
  • Making payments via non-decimal currencies (such as JPY)

Cause

Additional logic is required to handle server with a customised PHP serialize_precision settings and non-decimal currencies.

Solution

Please apply the 7.10.2 Maintenance Release via the Utilities > Update WHMCS page.

Hotfix

A hotfix has been created for 7.10.1 only which will account for these scenarios:

https://whmcs.community/files/file/131-module-7407-module-7406-an-error-occurred-when-making-paypal-payments/