Support » Plugin: Striper - Stripe Integration for WooCommerce » Uncaught exception 'Stripe_InvalidRequestError'

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Uncaught exception 'Stripe_InvalidRequestError'’ is closed to new replies.