This is the latest error message from the logs:
post_title:Stripe Error
post_content:The Stripe Gateway returned an error while creating the customer. Details: #0 /home/truckerschristma/public_html/wp-content/plugins/give/vendor/stripe/stripe-php/lib/ApiRequestor.php(125): Stripe\ApiRequestor->_requestRaw('post', '/v1/customers', Array, Array)
#1 /home/truckerschristma/public_html/wp-content/plugins/give/vendor/stripe/stripe-php/lib/ApiOperations/Request.php(57): Stripe\ApiRequestor->request('post', '/v1/customers', Array, Array)
#2 /home/truckerschristma/public_html/wp-content/plugins/give/vendor/stripe/stripe-php/lib/ApiOperations/Create.php(23): Stripe\ApiResource::_staticRequest('post', '/v1/customers', Array, Array)
#3 /home/truckerschristma/public_html/wp-content/plugins/give/includes/gateways/stripe/includes/class-give-stripe-customer.php(369): Stripe\Customer::create(Array, Array)
#4 /home/truckerschristma/public_html/wp-content/plugins/give/includes/gateways/stripe/includes/class-give-stripe-customer.php(201): Give_Stripe_Customer->create_customer()
#5 /home/truckerschristma/public_html/wp-content/plugins/give/includes/gateways/stripe/includes/class-give-stripe-customer.php(109): Give_Stripe_Customer->get_or_create_customer()
#6 /home/truckerschristma/public_html/wp-content/plugins/give/includes/gateways/stripe/includes/payment-methods/class-give-stripe-checkout.php(147): Give_Stripe_Customer->__construct('greg@tcgo.org', 0)
#7 /home/truckerschristma/public_html/wp-includes/class-wp-hook.php(292): Give_Stripe_Checkout->process_payment(Array)
#8 /home/truckerschristma/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', Array)
#9 /home/truckerschristma/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#10 /home/truckerschristma/public_html/wp-content/plugins/give/includes/gateways/functions.php(186): do_action('give_gateway_st...', Array)
#11 /home/truckerschristma/public_html/wp-content/plugins/give/includes/process-donation.php(213): give_send_to_gateway('stripe_checkout', Array)
#12 /home/truckerschristma/public_html/wp-includes/class-wp-hook.php(292): give_process_donation_form(Array)
#13 /home/truckerschristma/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', Array)
#14 /home/truckerschristma/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#15 /home/truckerschristma/public_html/wp-content/plugins/give/includes/actions.php(88): do_action('give_purchase', Array)
#16 /home/truckerschristma/public_html/wp-includes/class-wp-hook.php(292): give_post_actions('')
#17 /home/truckerschristma/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
#18 /home/truckerschristma/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#19 /home/truckerschristma/public_html/wp-settings.php(560): do_action('init')
#20 /home/truckerschristma/public_html/wp-config.php(86): require_once('/home/truckersc...')
#21 /home/truckerschristma/public_html/wp-load.php(37): require_once('/home/truckersc...')
#22 /home/truckerschristma/public_html/wp-blog-header.php(13): require_once('/home/truckersc...')
#23 /home/truckerschristma/public_html/index.php(17): require('/home/truckersc...')
#24 {main}
post_parent:0
log_type:gateway_error
file:/home/truckerschristma/public_html/wp-content/plugins/give/includes/gateways/functions.php
line:251
function:add
class:Give_Logging
The first issue that brought the problem to my attention was the Stripe webhook stopped working. I think the webhook is working again but still have the above issues
Hi @leadfoot12000,
Happy to help.
This error can trigger for a couple of reasons:
1. Whenever GiveWP and Stripe create a donation, the Payment Method is created and stored via Javascript in the browser (via the PM_YYYY id number). That is used for the rest of the transaction. In case there is some other JavaScript error that is preventing that value from being stored in the browser. Stripe assumes that any error is a potential security breach, so they don’t pass back that Payment Method until it’s confirmed there are no JavaScript errors on the page.
2. This is related to an incompatibility of the Stripe library we use and CentOS servers: https://github.com/impress-org/givewp/issues/4652
This has to do with the cURL version on the server.
In this case, you need to contact your host to check if cURL is active AND working.
The user who reported that also provided a workaround in case you want to try it out.
The file you need to edit is vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php
This is found in the “give” plugin folder. I made a quick screencast to help you navigate and edit the file: http://somup.com/cYQ3ccXMB6
Remember to test this in a staging site first if you can.
Hope it helps!
@mrdaro thanks so much for taking the time to reply. I have just been able to reply to your response.
I will check with the host asap and see if cURL is active and working.
This is the error sent to me from the website. I should have included it above. Pletrase let me know if it changes any of what you have sent me. And please bear with me as I am a very amateur web guy trying to run a charity and a website…
Error Details
=============
An error of type E_ERROR was caused in line 402 of the file /home/truckerschristma/public_html/wp-content/plugins/give/vendor/stripe/stripe-php/lib/ApiRequestor.php. Error message: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, Stripe\Util\CaseInsensitiveArray given in /home/truckerschristma/public_html/wp-content/plugins/give/vendor/stripe/stripe-php/lib/ApiRequestor.php:402
Stack trace:
#0 /home/truckerschristma/public_html/wp-content/plugins/give/vendor/stripe/stripe-php/lib/ApiRequestor.php(402): array_key_exists('request-id', Object(Stripe\Util\CaseInsensitiveArray))
#1 /home/truckerschristma/public_html/wp-content/plugins/give/vendor/stripe/stripe-php/lib/ApiRequestor.php(125): Stripe\ApiRequestor->_requestRaw('get', '/v1/accounts/ac...', Array, Array)
#2 /home/truckerschristma/public_html/wp-content/plugins/give/vendor/stripe/stripe-php/lib/ApiResource.php(62): Stripe\ApiRequestor->request('get', '/v1/accounts/ac...', Array, Array)
#3 /home/truckerschristma/public_html/wp-content/plugins/give/vendor/stripe/stripe-php/lib/ApiOperations/Retrieve.php(24): Stripe\ApiResource->refresh()
#4 /home/truckerschristma/public_html/wp-content/plugins/give/vendor/stripe/stripe-php/lib/Account.php(114): Stripe\Account::_retrieve('acct_1GIXHhKmoH...', Object(Stripe\Util\RequestOptions))
#5 /home/truckerschristma/public_html/wp-content/plugins/give/includes/gateways/stripe/includes/give-stripe-helpers.php(1532): Stripe\Account::retrieve('acct_1GIXHhKmoH...')
#6 /home/truckerschristma/public_html/wp-content/plugins/give/includes/gateways/stripe/includes/admin/admin-actions.php(63): give_stripe_get_account_details('acct_1GIXHhKmoH...')
#7 /home/truckerschristma/public_html/wp-includes/class-wp-hook.php(292): give_stripe_connect_save_options('')
#8 /home/truckerschristma/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
#9 /home/truckerschristma/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#10 /home/truckerschristma/public_html/wp-admin/admin.php(175): do_action('admin_init')
#11 /home/truckerschristma/public_html/wp-admin/edit.php(10): require_once('/home/truckersc...')
#12 {main}
thrown
EDIT: I tried the fix in the video that you linked to but still have same error.
Hi @leadfoot12000,
Can you also include your System Info?
Donations -> Tools -> System Info.
Thanks!
Hi Rick
I seem to have solved the issue. I was running php 8.0 and went back to 7.4 All is working ok now.
Thanks again for your help
I seem to have solved the issue. I was running php 8.0 and went back to 7.4 All is working ok now.
Same here. Rollback to 7.4 and it works. Thanks