Automattic / camptix

Moved to https://github.com/WordPress/wordcamp.org/
176 stars 94 forks source link

Payment Error #50

Closed RimshotCreative closed 11 years ago

RimshotCreative commented 11 years ago

I installed the camptix plugin and setup a ticket. When trying to process a payment I get the error: A payment error has occurred, looks like chosen payment method is not responding. Please try again later.

I installed the Core Control plugin and ran the logger which told me I had a problem with the SSL certificate: http_request_failed SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed.

Turns out I didn't have a certificate installed. So I installed a certificate, deleted the plugin and reinstalled it. But when I tried to register I got the same message: A payment error has occurred, looks like chosen payment method is not responding. Please try again later.

so I am still stuck. Please guide me on to the next steps to take.Thanks.

kovshenin commented 11 years ago

Hi there! Is the second error also about SSL or do you get something different?

RimshotCreative commented 11 years ago

It is about SSL. I worked with the host to install a ssl certificate. but it's like its not recognizing it.

http_request_failed SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed Time Taken 0.085687875747681 seconds HTTP Args
timeout (integer) 20 redirection (integer) 5 httpversion (string) 1.0 user-agent (string) WordPress/3.5.1; http://loadedupllc.com blocking (boolean) true headers Array ( ) cookies Array ( ) compress (boolean) false decompress (boolean) true sslverify (boolean) true stream (boolean) false filename NULL HTTP POST body
Array ( [USER] => [PWD] => [SIGNATURE] => [VERSION] => 88.0 [METHOD] => SetExpressCheckout [PAYMENTREQUEST_0_PAYMENTACTION] => Sale [PAYMENTREQUEST_0_ALLOWEDPAYMENTMETHOD] => InstantPaymentOnly [RETURNURL] => http://loadedupllc.com/schedule/?tix_action=payment_return&tix_payment_token=84471d331df283780f6c3bcc82d83007&tix_payment_method=paypal [CANCELURL] => http://loadedupllc.com/schedule/?tix_action=payment_cancel&tix_payment_token=84471d331df283780f6c3bcc82d83007&tix_payment_method=paypal [ALLOWNOTE] => 0 [NOSHIPPING] => 1 [SOLUTIONTYPE] => Sole [L_PAYMENTREQUEST_0_NAME0] => Loaded Up LLC � Handgun Permit Classes: May 24-25 Permit Class [L_PAYMENTREQUEST_0_DESC0] => Friday night Classroom 6 till 10pm Saturday Firing Range 8am till 12pm. [L_PAYMENTREQUEST_0_NUMBER0] => 817 [L_PAYMENTREQUEST_0_AMT0] => 1 [L_PAYMENTREQUEST_0_QTY0] => 1 [PAYMENTREQUEST_0_ITEMAMT] => 1 [PAYMENTREQUEST_0_AMT] => 1 [PAYMENTREQUEST_0_CURRENCYCODE] => USD

kovshenin commented 11 years ago

It's not about installing an SSL cert, but about having your server CA accept PayPal's SSL certificate as a valid one. Or you can by-pass the check (highly insecure) with CURLOPT_SSL_VERIFYPEER -- filter the ssl_verify argument to WP_Http.

RimshotCreative commented 11 years ago

So do I need to contact the certificate authority and ask them why they are not accepting the PayPal SSL or is this something that I can control somehow?

kovshenin commented 11 years ago

No, you just need a CA's certificate available on your host system that can verify PayPal's certificate during an open connection. Your hosting provider can help you with that.

RimshotCreative commented 11 years ago

Working with them now. Thanks for your help. Please leave this open for a couple days while I try to resolve this with the host. I may have more questions.

RimshotCreative commented 11 years ago

Ok, I have been back and forth with PayPal and the host several times verifying SSL certificates, etc. Now the host has the following question for you.

Hello,

From what I have found the error:

http_request_failedSSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

is due to a cURL error in the code, I would assume the checkout plugin code. Have you contacted the plugin developer to ask where it is that you can set the cURL options for the ca cert bundle that is being used? It seems the checkout module is using an outdated ca certificate bundle.

Thank You,

Nathan Sorensen Server Operations Newtek Technology Services

Please let me know if this is something we can fix.

kovshenin commented 11 years ago

CampTix does not use cURL directly, nor does it set any cURL options, especially related to SSL certificates. CampTix uses the WordPress HTTP API for all HTTP requests, which might, or might not use cURL. The Core Control plugin should tell you whether you're using cURL at all.

Other than that, you will find all the cURL related code in WordPress core in wp-includes/class-http.php You can also probably set any of the cURL options in your php.ini configuration file. Also try and disable all plugins and revert to the default theme to make sure it's not any of your plugins causing any conflicts.

Hope this helps!

iandunn commented 11 years ago

Closing due to inactivity.