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

Stripe Plugins

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
  • Contact Us
  • Show Search
Hide Search
You are here: Home / Topics / Price of product different than what is actually charged.

[Resolved] Price of product different than what is actually charged.

· ·

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

This topic contains 4 replies, has 3 voices, and was last updated by  alexanderfoxc 10 months, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 12, 2020 at 7:54 pm #2988

    bvignery
    Participant

    I created a subscription product for $19.99 recurring monthly. It shows the price as being $19.99 but when the “Join Now” button is clicked, it shows the price being $19.98. I tried it with a different subscription of $20.00 even and the error didn’t happen [stephanievignery.com/wp-content/uploads/2020/06/Screen-Shot-2020-06-12-at-2.45.29-PM.png]

    June 12, 2020 at 8:29 pm #2990

    bvignery
    Participant

    I create a new secret API key and it looks like it may have corrected the issue.

    June 13, 2020 at 2:11 am #2993

    Admin
    Keymaster

    If you see the issue again, let us know.

    June 13, 2020 at 12:11 pm #2995

    alexanderfoxc
    Keymaster

    Hmm, I was able to reproduce the issue.

    I will investigate this further and get back to you.

    June 13, 2020 at 12:29 pm #2996

    alexanderfoxc
    Keymaster

    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.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Primary Sidebar

Search

Featured Addons and Extensions

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

Addon Bundle

Stripe Payments Addon Bundle

Support Links

  • Support Forum
  • Forum Registration

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