Title: A payment error has occured
Last modified: August 30, 2016

---

# A payment error has occured

 *  [jentay5](https://wordpress.org/support/users/jentay5/)
 * (@jentay5)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/a-payment-error-has-occured/)
 * I keep getting this error today. Possibly since WP update to 4.4?
 * A payment error has occurred, looks like chosen payment method is not responding.
   Please try again later.
 * POST [https://api-3t.paypal.com/nvp](https://api-3t.paypal.com/nvp) error 0.293s
   2015-12-14 20:55:02
    Request Details
 * URL [https://api-3t.paypal.com/nvp](https://api-3t.paypal.com/nvp)
    Method POST
   Result error Error Details http_request_failed SSL certificate problem: unable
   to get local issuer certificate Time Taken 0.292705059052 seconds HTTP Args timeout(
   integer) 20 redirection (integer) 5 httpversion (string) 1.1 user-agent (string)
   WordPress/4.4; [http://vclr.ca](http://vclr.ca) reject_unsafe_urls (boolean) 
   false blocking (boolean) true headers Array ( ) cookies Array ( ) compress (boolean)
   false decompress (boolean) true sslverify (boolean) true sslcertificates (string)/
   home/vclrc940/public_html/wp-includes/certificates/ca-bundle.crt stream (boolean)
   false filename NULL limit_response_size NULL HTTP POST body Array ( [USER] =>
   Service.VCLR_api1.gmail.com [PWD] => XP2TVT39DTX665NX [SIGNATURE] => XD8vKTISc-
   KydJcKVYgpmv-QTpJTASOmpFoqBwV84ZXojRDVGmTWdgG9 [VERSION] => 88.0 [METHOD] => 
   SetExpressCheckout [PAYMENTREQUEST_0_PAYMENTACTION] => Sale [PAYMENTREQUEST_0_ALLOWEDPAYMENTMETHOD]
   => InstantPaymentOnly [RETURNURL] => [http://vclr.ca/registration/?tix_action=payment_return&tix_payment_token=87e7eb9595245bd17d9a7bc5f47186a1&tix_payment_method=paypal](http://vclr.ca/registration/?tix_action=payment_return&tix_payment_token=87e7eb9595245bd17d9a7bc5f47186a1&tix_payment_method=paypal)[
   CANCELURL] => [http://vclr.ca/registration/?tix_action=payment_cancel&tix_payment_token=87e7eb9595245bd17d9a7bc5f47186a1&tix_payment_method=paypal](http://vclr.ca/registration/?tix_action=payment_cancel&tix_payment_token=87e7eb9595245bd17d9a7bc5f47186a1&tix_payment_method=paypal)[
   ALLOWNOTE] => 0 [NOSHIPPING] => 1 [SOLUTIONTYPE] => Sole [L_PAYMENTREQUEST_0_NAME0]
   => Vancouver Children’s Literature Roundtable: UBC Children’s Lit/Lib/Edu Conference–
   Faculty/Professional [L_PAYMENTREQUEST_0_DESC0] => Many Worlds to Walk In: Exploring
   Diversity in Children’s Literature, Librarianship, and Education | April 30, 
   2016
 *  [L_PAYMENTREQUEST_0_NUMBER0] => 6272
    [L_PAYMENTREQUEST_0_AMT0] => 45 [L_PAYMENTREQUEST_0_QTY0]
   => 1 [PAYMENTREQUEST_0_ITEMAMT] => 45 [PAYMENTREQUEST_0_AMT] => 45 [PAYMENTREQUEST_0_CURRENCYCODE]
   => CAD ) HTTP Transports WP_Http_Curl Request Time 2015-12-14 20:55:02 –800
 * [https://wordpress.org/plugins/camptix/](https://wordpress.org/plugins/camptix/)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [realdoctorstu](https://wordpress.org/support/users/realdoctorstu/)
 * (@realdoctorstu)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/a-payment-error-has-occured/#post-6851913)
 * Same problem here.
 * I have an almost identical error – have put it in pastebin here: [http://pastebin.com/iusauKUW](http://pastebin.com/iusauKUW)
 * I tried using the http 1.1 workaround proposed a year ago here: [https://wordpress.org/support/topic/sandbox-error-a-payment-error-has-occurred?replies=12](https://wordpress.org/support/topic/sandbox-error-a-payment-error-has-occurred?replies=12)
   
   but that didn’t fix it (This change appears to have been made in a plugin update)
 * I think I may have solved it though by going back to this post from 2 years ago,
   which showed that the plugin requires a SSL certificate (which many servers don’t
   have): [https://wordpress.org/support/topic/fixed-paypal-error?replies=3](https://wordpress.org/support/topic/fixed-paypal-error?replies=3)
 * The plugin code seems to have changed a bit, but you need to change two lines
   of code as instructed in this post on lines 730 and 749
    From this: `$response
   = wp_remote_post( $url, array( 'body' => $payload, 'timeout' => apply_filters('
   camptix_paypal_timeout', 20 ), 'httpversion' => '1.1' ) );`
 * to this:
 * `$response = wp_remote_post( $url, array( 'body' => $payload, 'timeout' => 20,'
   sslverify' => false ) );`
 * Hope that helps!
 * I put the updated payment-paypal.php here: [http://pastebin.com/8uuBaP7Q](http://pastebin.com/8uuBaP7Q)
   
   It then needs to replace the one that is in wp-content/plugins/camptix/addons/
   payment-paypal.php
 *  Thread Starter [jentay5](https://wordpress.org/support/users/jentay5/)
 * (@jentay5)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/a-payment-error-has-occured/#post-6851916)
 * Thank you, that seems to have worked!
 *  [realdoctorstu](https://wordpress.org/support/users/realdoctorstu/)
 * (@realdoctorstu)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/a-payment-error-has-occured/#post-6851929)
 * Pleasure! Hope it helps others 🙂
 *  [sneader](https://wordpress.org/support/users/sneader/)
 * (@sneader)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/a-payment-error-has-occured/#post-6851969)
 * [@realdoctorstu](https://wordpress.org/support/users/realdoctorstu/) thank you
   for your work on this!! A small non-profit contacted me for help with this very
   same problem, and due to your fix, I was able to get their site working again,
   so they could sell tickets to their fund-raiser.
 * I’m very disappointed in Automattic for not fixing this issue.
 * – Scott
 *  Plugin Author [Konstantin Kovshenin](https://wordpress.org/support/users/kovshenin/)
 * (@kovshenin)
 * [10 years ago](https://wordpress.org/support/topic/a-payment-error-has-occured/#post-6852047)
 * Just a note that turning off sslverify is very dangerous and allows an attacker
   to spoof your request regardless of HTTPS.
 *  [realdoctorstu](https://wordpress.org/support/users/realdoctorstu/)
 * (@realdoctorstu)
 * [10 years ago](https://wordpress.org/support/topic/a-payment-error-has-occured/#post-6852048)
 * Thanks for the info. What’s the alternative for using the plugin over a non-https
   site?
 *  Plugin Author [Konstantin Kovshenin](https://wordpress.org/support/users/kovshenin/)
 * (@kovshenin)
 * [10 years ago](https://wordpress.org/support/topic/a-payment-error-has-occured/#post-6852049)
 * Sorry for the confusion, the site itself doesn’t have to be HTTPS, but the requests
   to the PayPal API do. If SSL verification is not working, something is likely
   wrong with your hosting environment setup. I recommend you reach out to them 
   for help, but NOT turn off SSL verification.
 *  [sneader](https://wordpress.org/support/users/sneader/)
 * (@sneader)
 * [10 years ago](https://wordpress.org/support/topic/a-payment-error-has-occured/#post-6852050)
 * Hi [@konstantin](https://wordpress.org/support/users/konstantin/). I *am* the
   web hosting provider. We run very standard cPanel / CentOS 6 installations. What
   is it, exactly, that we are doing wrong, to cause this problem?
 * – Scott
 *  Plugin Author [Konstantin Kovshenin](https://wordpress.org/support/users/kovshenin/)
 * (@kovshenin)
 * [10 years ago](https://wordpress.org/support/topic/a-payment-error-has-occured/#post-6852051)
 * [@sneader](https://wordpress.org/support/users/sneader/), an outdated ca-certificates
   probably. Can you connect to api-3t.paypal.com over port 443 with curl?
 *  [sneader](https://wordpress.org/support/users/sneader/)
 * (@sneader)
 * [10 years ago](https://wordpress.org/support/topic/a-payment-error-has-occured/#post-6852052)
 * Hi Konstantin. I wonder if this problem was already resolved in WordPress. See
   this bug/defect ticket:
 * [https://core.trac.wordpress.org/ticket/34935](https://core.trac.wordpress.org/ticket/34935)
   
   Certificate bundle with 1024-bit root certificates re-added
 * In any event, to answer your question, here are two curls:
 * # curl [https://api-3t.paypal.com](https://api-3t.paypal.com)
    <?xml version=”
   1.0″ encoding=”UTF-8″?><SOAP-ENV:Envelope xmlns:SOAP-ENV=”[http://schemas.xmlsoap.org/soap/envelope/&#8221](http://schemas.xmlsoap.org/soap/envelope/&#8221);
   xmlns:SOAP-ENC=”[http://schemas.xmlsoap.org/soap/encoding/&#8221](http://schemas.xmlsoap.org/soap/encoding/&#8221);
   xmlns:xsi=”[http://www.w3.org/2001/XMLSchema-instance&#8221](http://www.w3.org/2001/XMLSchema-instance&#8221);
   xmlns:xsd=”[http://www.w3.org/2001/XMLSchema&#8221](http://www.w3.org/2001/XMLSchema&#8221);
   xmlns:xs=”[http://www.w3.org/2001/XMLSchema&#8221](http://www.w3.org/2001/XMLSchema&#8221);
   xmlns:cc=”urn:ebay:apis:CoreComponentTypes” xmlns:ed=”urn:ebay:apis:EnhancedDataTypes”
   xmlns:wsu=”[http://schemas.xmlsoap.org/ws/2002/07/utility&#8221](http://schemas.xmlsoap.org/ws/2002/07/utility&#8221);
   xmlns:saml=”urn:oasis:names:tc:SAML:1.0:assertion” xmlns:ds=”[http://www.w3.org/2000/09/xmldsig#&#8221](http://www.w3.org/2000/09/xmldsig#&#8221);
   xmlns:market=”urn:ebay:apis:Market” xmlns:auction=”urn:ebay:apis:Auction” xmlns:
   sizeship=”urn:ebay:api:PayPalAPI/sizeship.xsd” xmlns:ship=”urn:ebay:apis:ship”
   xmlns:skype=”urn:ebay:apis:skype” xmlns:wsse=”[http://schemas.xmlsoap.org/ws/2002/12/secext&#8221](http://schemas.xmlsoap.org/ws/2002/12/secext&#8221);
   xmlns:ebl=”urn:ebay:apis:eBLBaseComponents” xmlns:ns=”urn:ebay:api:PayPalAPI”
   ><SOAP-ENV:Body SOAP-ENV:encodingStyle=”[http://schemas.xmlsoap.org/soap/encoding/&#8221](http://schemas.xmlsoap.org/soap/encoding/&#8221);
   id=”_0″><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>End
   of file or no input: ‘No such file or directory'</faultstring></SOAP-ENV:Fault
   ></SOAP-ENV:Body></SOAP-ENV:Envelope>
 * # curl [https://api-3t.paypal.com/nvp](https://api-3t.paypal.com/nvp)
    ACK=Failure&
   L_ERRORCODE0=81002&L_SHORTMESSAGE0=Unspecified%20Method&L_LONGMESSAGE0=Method%
   20Specified%20is%20not%20Supported&L_SEVERITYCODE0=Error
 *  Plugin Author [Konstantin Kovshenin](https://wordpress.org/support/users/kovshenin/)
 * (@kovshenin)
 * [10 years ago](https://wordpress.org/support/topic/a-payment-error-has-occured/#post-6852053)
 * [@sneader](https://wordpress.org/support/users/sneader/) Yeah, that ticket is
   just WordPress trying to be nice to outdated software 🙂 But if that point release
   fixed the issue, then okay, though I still recommend updating libcurl, openssl
   and ca-certificates.
 *  [sneader](https://wordpress.org/support/users/sneader/)
 * (@sneader)
 * [10 years ago](https://wordpress.org/support/topic/a-payment-error-has-occured/#post-6852054)
 * It might be outdated, but for the tens of thousands of servers (if not hundreds
   of thousands — cPanel keeps their license counts secret) running CentOS 6 / cPanel,
   it is what is being provided to us. It’s interesting that WordPress still insists
   on being backwards compatible to PHP 5.2, which is incredibly out of date and
   unsupported, but is pushing this type of update. But I disgress… I am pretty 
   sure that the WP bug/defect fix likely solved this issue. I will remove the patch
   and see how it goes.
 * Thanks!
 * – Scott
 *  [realdoctorstu](https://wordpress.org/support/users/realdoctorstu/)
 * (@realdoctorstu)
 * [10 years ago](https://wordpress.org/support/topic/a-payment-error-has-occured/#post-6852055)
 * Hi Scott,
 * Let me know if you get resolution to the issue. I’m reluctant to remove the patch
   if it doesn’t work as the site is active, and would need a working alternative
   if it doesn’t.
 * Thanks,
 * Stu

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘A payment error has occured’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/camptix_aea99d.svg)
 * [CampTix Event Ticketing](https://wordpress.org/plugins/camptix/)
 * [Support Threads](https://wordpress.org/support/plugin/camptix/)
 * [Active Topics](https://wordpress.org/support/plugin/camptix/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/camptix/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/camptix/reviews/)

 * 13 replies
 * 4 participants
 * Last reply from: [realdoctorstu](https://wordpress.org/support/users/realdoctorstu/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/a-payment-error-has-occured/#post-6852055)
 * Status: not resolved