Skip to content
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

Completing (some) payments fails due to CURL errors #6

Open
nilsenpaul opened this issue Aug 10, 2018 · 0 comments
Open

Completing (some) payments fails due to CURL errors #6

nilsenpaul opened this issue Aug 10, 2018 · 0 comments

Comments

@nilsenpaul
Copy link

Using the Commerce Mollie plugin, most payments get completed without any problems. However, some payments throw the error ('payment error:'), with no further explanation.

After some searching, this is what causes the problem. The response of $gateway->completePurchase($transaction) (line 357 of commerce/src/services/Payments.php) contains the following bit of information:

["multiErrors":protected]=> array(4) { [1]=> array(2) { [0]=> string(16) "CURLM_BAD_HANDLE" [1]=> string(49) "The passed-in handle is not a valid CURLM handle." } [2]=> array(2) { [0]=> string(21) "CURLM_BAD_EASY_HANDLE" [1]=> string(165) "An easy handle was not good/valid. It could mean that it isn't an easy handle at all, or possibly that the handle already is in used by this or another multi handle." } [3]=> array(2) { [0]=> string(19) "CURLM_OUT_OF_MEMORY" [1]=> string(15) "You are doomed." } [4]=> array(2) { [0]=> string(20) "CURLM_INTERNAL_ERROR" [1]=> string(66) "This can only be returned if libcurl bugs. Please report it to us!" } }

I don't know if I should file this issue here, or under Craft Commerce. Could you look into this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant