-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cURL timeout resulting in failed recurring payment #170
Labels
Comments
As discussed @pronamic HQ we may want to increase the WordPress HTTP API timeout when dealing with an "Action Scheduler" background task: $args = [
'method' => $method,
'user-agent' => $this->get_user_agent(),
'headers' => [
'Authorization' => 'Bearer ' . $this->api_key,
],
'timeout' => \wp_doing_cron() ? 30 : 5,
]; Let us wait a moment for a possible response to the following issue: |
remcotolsma
added a commit
to pronamic/wp-mollie
that referenced
this issue
Jan 22, 2024
Fixed with:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In internal Help Scout ticket https://secure.helpscout.net/conversation/2482719794/26765 it came to our attention that the status of a recurring payment can be set to
Failure
in WordPress, while the actual payment has been paid successfully.The cause seems to be a cURL timeout on payment start, which is converted from
WP_Error
to an exception in the pronamic/wp-http library, resulting in theFailure
payment status.https://github.com/pronamic/wp-http/blob/2b0ce3ca663103b8a30101ff5bff9254ee4da093/src/Facades/Http.php#L37-L43
wp-pay-core/src/Plugin.php
Lines 1110 to 1125 in e484e55
The text was updated successfully, but these errors were encountered: