WordPress.org

Forums

Striper - Stripe Integration for WooCommerce
Uncaught exception 'Stripe_InvalidRequestError' (4 posts)

  1. jongen
    Member
    Posted 1 year ago #

    Hello,

    I'm running Striper 0.29, WooCommerce 2.1.9 and I set the default currency to CAD in WooCommerce settings. I'm running Stripe in test mode with Visa number 4242 4242 4242 4242, which is a test value. After placing order, I get the following error.

    Fatal error: Uncaught exception 'Stripe_InvalidRequestError' with message 'Missing required param: currency' in /home/public_html/wp-content/plugins/striper/lib/stripe-php/lib/Stripe/ApiRequestor.php:86 Stack trace: #0 /home/public_html/wp-content/plugins/striper/lib/stripe-php/lib/Stripe/ApiRequestor.php(136): Stripe_ApiRequestor->handleApiError('{? "error": {?...', 400, Array) #1 /home/public_html/wp-content/plugins/striper/lib/stripe-php/lib/Stripe/ApiRequestor.php(74): Stripe_ApiRequestor->_interpretResponse('{? "error": {?...', 400) #2 /home/public_html/wp-content/plugins/striper/lib/stripe-php/lib/Stripe/ApiResource.php(76): Stripe_ApiRequestor->request('post', '/v1/charges', Array) #3 /home/public_html/wp-content/plugins/striper/lib/stripe-php/lib/Stripe/Charge.php(26): Stripe_ApiResource::_scopedCreate('Stripe_Charge', Array, NULL) #4 /home/public_html/wp-content/plugins/stripe/includes/misc-functions.php(61): Stripe_Charge::create(Array) #5 [internal functio in /home/public_html/wp-content/plugins/striper/lib/stripe-php/lib/Stripe/ApiRequestor.php on line 86

    I tried editing stripe_gateway.php and hard-replacing all currency instances to "cad", and I edited every instance of "usd" in the plugin folder to "cad", to no avail, and there hasn't been anything like that mentioned elsewhere in the Googleverse. Am I missing something obvious?

    https://wordpress.org/plugins/striper/

  2. filesofnerds
    Member
    Posted 8 months ago #

    Running into the same error. I think it's related to the PHP version that is being used. I'm testing locally on PHP5.6 where the server wherein I get this error is PHP5.4.

    Check it here http://pastebin.com/C0nMZtY8

  3. filesofnerds
    Member
    Posted 8 months ago #

  4. filesofnerds
    Member
    Posted 8 months ago #

    The PHP version seems to be irrelevant.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Striper - Stripe Integration for WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.