• Hello WordPress Community,
    I have a client who had a website built roughly 4 years ago, that has a 1 product store that connects directly to Stripe for the transaction. Unfortunately at some point in the last month the API broke & the website receives a critical error. And the website was built by a different developer years ago.

    I am reaching out to see if anyone has any insight (client is willing to pay) to fix the issue. My other option will be to rebuild it with WooCommerce but I would prefer to get the API fixed initially as I think that will be an easier fix.

    The website looks to be using a custom PHP page to handle the transaction as there are only 3 plugins active, and none of them are related to processing the Stripe API.

    The error code is below. Any help/assistance is appreciated to get the store back up & running.

    Fatal error: Uncaught Stripe\Error\InvalidRequest: Shipping calculation failed: Shipping rates calculation failed with code: in /nas/content/live/petshield/wp-content/themes/petshield/lib/ApiRequestor.php:124 Stack trace: #0 /nas/content/live/petshield/wp-content/themes/petshield/lib/ApiRequestor.php(102): Stripe\ApiRequestor::_specificAPIError('{\n "error": {\n...', 400, Array, Array, Array) #1 /nas/content/live/petshield/wp-content/themes/petshield/lib/ApiRequestor.php(309): Stripe\ApiRequestor->handleErrorResponse('{\n "error": {\n...', 400, Array, Array) #2 /nas/content/live/petshield/wp-content/themes/petshield/lib/ApiRequestor.php(65): Stripe\ApiRequestor->_interpretResponse('{\n "error": {\n...', 400, Array) #3 /nas/content/live/petshield/wp-content/themes/petshield/lib/ApiResource.php(119): Stripe\ApiRequestor->request('post', '/v1/orders', Array, Array) #4 /nas/content/live/petshield/wp-content/themes/petshield/lib/ApiResource.php(158): Stripe\ApiResource::_staticRequest('post', '/v1/orders', Array, NULL) #5 in /nas/content/live/petshield/wp-content/themes/petshield/lib/ApiRequestor.php on line 124

    • This topic was modified 2 years, 8 months ago by Yui. Reason: moved to fixing wordpress

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • From what you said, I assume it is a custom created theme? According to the error message, the stripe functions are contained in it instead of a plugin.

    If the theme was created 4 years ago, it may be that the Stripe API has changed in the meantime, so you would certainly need to update the Stripe library in the theme.

    Unfortunately, I’m not that familiar with the API. A quick search led me to this library which also contains file names that are included in the error message: https://github.com/stripe/stripe-php – assuming this is the library used by the theme, updating these files might already be a solution.

    Otherwise I would recommend you to find someone who is familiar with the Stripe API. You could place an ad here: https://jobs.wordpress.net

    Thread Starter verdipro

    (@verdipro)

    @threadi thank you for the fast reply. That is correct, this is a custom theme. I am also not familiar with the Stripe API, so I figured I would post & be able to pass this part of the project off to someone more familiar with it. Rather then recreating the cart.

    If anyone else sees this post & has the ability to fix the issue, I am happy to proceed further with passing over the project. I will take a look at the jobs area & see if I can post it there also.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Stripe API’ is closed to new replies.