• 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
    • My Downloads
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
  • Contact Us
  • Show Search
Hide Search
You are here: Home / Topics / Unable to purchase a subscription plan – Invalid unit for paymentRequest()

[Resolved] Unable to purchase a subscription plan – Invalid unit for paymentRequest()

· ·

Home › Forums › Stripe Payments Plugin › Unable to purchase a subscription plan – Invalid unit for paymentRequest()

This topic contains 1 reply, has 2 voices, and was last updated by  alexanderfoxc 6 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • August 17, 2020 at 8:41 am #3160

    cadonix
    Participant

    Purchase button click causes the site to hang. Developer console reveals an error coming from Stripe:

    Uncaught IntegrationError: Invalid value for paymentRequest(): displayItems.0.amount should be an amount in the currency’s subunit. You specified: 214919.99999999997.
    at new t (https://js.stripe.com/v3/:1:11100)
    at Lt (https://js.stripe.com/v3/:1:21083)
    at xt (https://js.stripe.com/v3/:1:21154)
    at new t (https://js.stripe.com/v3/:1:88950)
    at $a (https://js.stripe.com/v3/:1:117126)
    at e.<anonymous> (https://js.stripe.com/v3/:1:174678)
    at e.paymentRequest (https://js.stripe.com/v3/:1:29388)

    For a Subscription purchase with the following specification:

    “Free for 7 days, then £2,149.20 every 12 months until cancelled”

    Also noting several miscellaneous errors occurring when updating subscription packages and working with multiple currencies.

    As of 17/08/2020 every plugin component is up to date.

    August 17, 2020 at 10:54 pm #3161

    alexanderfoxc
    Keymaster

    Hi.

    The issue seems to be caused by Additional Payment Methods add-on. I was unable to reproduce it on my test server though. Can you please share a link to your website where your payment button is?

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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.