Troubleshooting a "An Error Occurred. Please try again" error making Stripe payments

Symptom

Users of certain server environment configurations may encounter a red error message when a client attempts to pay for an order or invoice using a stored Stripe Payment Method:


An Error Occurred. Please try again.
Click to copy
An Error Occurred. Please try again.

Cause

The server environment is missing the expected nd_pdo_mysql PHP extension

Solution

Edit your server's PHP extension configurations to enable the nd_pdo_mysql extension.

The following screenshot shows a known good configuration using the CloudLinux PHP Selector in cPanel: