Skip to content
⌘K
InboxAsk a human

Troubleshooting Paypal Error. "OrderTotal (Amt): Required Parameter Missing or 'Bad Math' Error"

Updated by POWR Support

When using POWR Form Builder with PayPal, you might see an error during checkout: “OrderTotal (Amt): Required Parameter Missing or ‘Bad Math’.” This error typically comes from specific configurations within your form, most often how your checkbox options are set up. When option labels overlap or contain special characters, the form can’t calculate the order total correctly, and PayPal returns the error. In this article we’ll walk you through the common causes and the recommended solutions, so your customers can check out without problems.

mceclip0.png

In This Article:

Understanding the Error

The error message indicates that PayPal is either missing a required parameter (OrderTotal or Amt) or there's a discrepancy in the total amount calculation, leading to a "Bad Math" error.

mceclip1.png

Common Causes

  1. Identical Checkbox Options: Having multiple checkbox options with identical or overlapping text can confuse the total amount calculation. For example:

    • Option 1: "Basic Plan"

    • Option 2: "Basic Plan Plus Support"

    Here, "Basic Plan" is a subset of "Basic Plan Plus Support," which can lead to calculation errors. For example, use clear separation of plans as below:

    mceclip2.png
  2. Use of Special Characters: Including special characters, especially the ampersand (&), in option labels can cause issues. For instance:

    • "Research & Development" should be replaced with "Research and Development."

  1. Ensure Unique Option Labels: Modify checkbox option texts to be distinct and non-overlapping. This helps in accurate total calculations.

  2. Avoid Special Characters: Replace special characters like & with their word equivalents. For example, use "and" instead of "&."

  3. Separate Checkbox Elements: If you have options that might overlap, consider using separate multiple checkbox elements for each group. This segregation can prevent calculation conflicts.

Additional Tips

  • Review Form Configurations: Regularly check your form settings to ensure all options are correctly configured.

  • Test Before Publishing: Always test your form's payment process applying discounts to catch potential errors early.

FAQs

Q: Why does the error occur only with certain checkbox configurations? A: Overlapping or identical option texts can confuse the system's calculation logic, leading to errors.

Q: Can I use symbols in option labels? A: It's recommended to avoid special characters like & in option labels to prevent potential issues.

The “OrderTotal (Amt): Required Parameter Missing or ‘Bad Math’” error is usually the result of overlapping checkbox option text or special characters such as & in your option labels. Giving each option a unique label, replacing symbols with words like “and” and using separate checkbox elements for groups of options that might overlap will help prevent calculation conflicts. It’s also a good idea to review your form configuration regularly and test your payment process, including any discounts, before publishing. If you still see the error after making these changes, our support team is always here and happy to help, so don’t hesitate to reach out.

Need Help?
If you need help or have questions about our apps, our support team is happy to assist.

👉 Contact our support team

When you contact us, you'll be prompted to authenticate your email by signing in, and we'll email you a confirmation code. This helps ensure our support team's reply reaches you without issues.

For more information about available features, visit our Pricing Page:
https://www.powr.io/pricing