• 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 / Topics / Error message when adding the shortcode

[Resolved] Error message when adding the shortcode

· ·

Home › Forums › Stripe Payments Plugin › Error message when adding the shortcode

Tagged: error

  • This topic has 6 replies, 2 voices, and was last updated 7 years ago by Admin.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • April 20, 2018 at 5:28 pm #668
    Admin
    Keymaster

    Hi everyone,

    When I add the shortcode after all the settings fit me, there is this message on top of the page :

    Warning: A non-numeric value encountered in /app/public/wp-content/plugins/stripe-payments/public/includes/class-shortcode-asp.php on line 349

    On test mode, I can still make a donation but I don’t know why the message is showing … Can you help me ?

    Thank you ! 🙂

    April 21, 2018 at 5:41 am #669
    Admin
    Keymaster

    That usually happens if a price or quantity amount is using an incorrect value somewhere. What is the exact shortcode that you are using?

    April 21, 2018 at 9:46 am #672
    Admin
    Keymaster

    Hi 🙂 Thank you for your answer.

    The shortcode I’m using is : [asp_product id=”560″]

    For the amount to order, I didn’t write anything so it is the default value 1. For the price, it is the same because it is for donation, I want people to donate the amount they want. What do you think ?

    April 21, 2018 at 4:40 pm #673
    Admin
    Keymaster

    The shortcode looks fine. Can you please share a link to the page where you have the Stripe donation button? That way I can take inspect the values on the site.

    April 21, 2018 at 6:29 pm #674
    Admin
    Keymaster

    Hi,

    Here is the link to the page : 45e5087b.ngrok.io/page-test-a-supprimer/

    (I’m in local so it’s not very fast yet)
    Don’t pay attention to the form, the sortcode is right below 🙂 Thank you for the help

    April 22, 2018 at 6:04 am #680
    Admin
    Keymaster

    Can you please do a little test for me (since this is your test site).

    Open the following file of the plugin:

    stripe-payments/public/includes/class-shortcode-asp.php

    Go to line number 349. The following line:

    
    $item_price = $price * 100;
    

    Change it to the following and save the file:

    
    $item_price = floatval($price) * 100;
    

    Does it make a difference after that?

    April 22, 2018 at 11:13 am #681
    Admin
    Keymaster

    Hello !

    That’s perfect you’ve pointed the problem very well, thank you very much as it was pretty urgent 🙂

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

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.