• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Payments Plugin for Stripe

Stripe payment plugins for your WordPress site

  • Home
  • Documentation
  • Addons
  • Login
    • Sign In
    • Edit Profile
    • Terms & Conditions
    • My Downloads
    • License Key
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
    • Email Support for Customers
  • Contact Us
  • Show Search
Hide Search
You are here: Home / Replies /

Reply To: Price of product different than what is actually charged.

· ·

Home › Forums › Stripe Payments Plugin › Price of product different than what is actually charged. › Reply To: Price of product different than what is actually charged.

June 13, 2020 at 12:29 pm #2996
alexanderfoxc
Participant

Looks like it was precision inconsistency between frontend and backend calculations. JavaScript is trying to represent 19.99 with as much precision as possible. Since computers don’t have infinite precision, it picks the number that is closest: represents 19.99 as 19.98999999999999. So after the value is processed on backend, multiplied by 100 (Stripe API requires amount to be passed in cents) and gets fractional part removed, it becomes 1998.

This will be fixed in the upcoming version of the Subscriptions addon. Note you might have to re-create your plans if they still show improper amount.

Thank you for reporting this.

Primary Sidebar

Featured Addons and Extensions

  • Subscription Payments Addon
  • Additional Custom Fields
  • Secure Downloads Addon
  • Apple Pay, Google Pay, Afterpay

Addon Bundle

Stripe Payments Addon Bundle

A Simple & Lightweight Plugin

Our Philosophy with the Plugin

Support Links

  • Support Forum
  • Support Contact

Search

Copyright © 2025 | Stripe Plugins | A member of the Tips and Tricks HQ family.