• Resolved macooper921

    (@macooper921)


    Hi All,
    I’m new to this, and am having a tough time figuring things out. I’m hoping someone can offer some help/guidance…

    The error message I am getting is:
    Fatal error: Uncaught exception ‘Stripe_InvalidRequestError’ with message ‘Missing required param: currency’ in /home/danandmike/biellomartin.com/wordpress/wp-content/plugins/stripe/stripe-php/Stripe/ApiRequestor.php:152 Stack trace: #0 /home/danandmike/biellomartin.com/wordpress/wp-content/plugins/stripe/stripe-php/Stripe/ApiRequestor.php(212): Stripe_ApiRequestor->handleApiError(‘{? “error”: {?…’, 400, Array) #1 /home/danandmike/biellomartin.com/wordpress/wp-content/plugins/stripe/stripe-php/Stripe/ApiRequestor.php(114): Stripe_ApiRequestor->_interpretResponse(‘{? “error”: {?…’, 400) #2 /home/danandmike/biellomartin.com/wordpress/wp-content/plugins/stripe/stripe-php/Stripe/ApiResource.php(111): Stripe_ApiRequestor->request(‘post’, ‘/v1/charges’, Array) #3 /home/danandmike/biellomartin.com/wordpress/wp-content/plugins/stripe/stripe-php/Stripe/Charge.php(38): Stripe_ApiResource::_scopedCreate(‘Stripe_Charge’, Array, NULL) #4 /home/danandmike/biellomartin.com/wordpress/wp-content/plugins/stripe/includes/misc-function in /home/danandmike/biellomartin.com/wordpress/wp-content/plugins/stripe/stripe-php/Stripe/ApiRequestor.php on line 152

    And the code I’m using is (this is actually what I coded into the text section itself):

    <h2>Purchase Here through Stripe!</h2>
    <form action="" method="POST"><script class="stripe-button" src="http://checkout.stripe.com/checkout.js" data-key="pk_live_M0fxdJFFvK1yjvE0FvHLz0Jt" data-amount="1000" data-name="Absolutely Present" data-description="sheet music ($10.00)" data-image="http://www.biellomartin.com/wordpress/wp-content/uploads/2013/12/Absolutely-Present-309x400.jpg">// <![CDATA[
    >
    // ]]></script></form>

    [Moderator Note: Please post code & markup between backticks (not double quotes) or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Any suggestion?

    MUCH MUCH MUCH thanks.
    M-A

    https://wordpress.org/plugins/stripe/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Nick Young

    (@nickyoung87)

    @macooper921

    Is there a specific reason you are adding the <form> and <script> tags within your page?

    If not, then the proper way to add the Stripe Checkout form is by using the shortcode [stripe] and fill in the options you need (amount is required). You can find more about the shortcode uses and options in the help section of the plugin.

    Hope this helps.

    Thanks for using our plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Help with Stripe Error’ is closed to new replies.