• Resolved contemplate

    (@contemplate)


    Like many people here I too was having the same Paypal Error: “A payment error has occurred, looks like chosen payment method..”

    I installed the Core Control plugin to help diagnose the issue and found that it was trying to verify an SSL certificate but my server doesn’t have one. So I changed two lines of code and it works now.

    Open file: wp-content/plugins/camptix/addons/payment-paypal.php
    on lines 627 & 639 replace this:

    return wp_remote_post( $url, array( 'body' => $payload, 'timeout' => 20 ) );

    with this:

    return wp_remote_post( $url, array( 'body' => $payload, 'timeout' => 20, 'sslverify' => false ) );

    Everything works for me now. I hope the developer includes an option to turn SSL off or on in the plugin options setting.

    https://www.ads-software.com/extend/plugins/camptix/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Great work, thanks, works like a charm !!

    Plugin Author Ian Dunn

    (@iandunn)

    Hi contemplate, I think you should only get that error if there’s something wrong with the connection between you and PayPal. I’d caution against disabling sslverify, because it could make you vulnerable to certain types of attacks.

    However, if you do want to disable it, you shouldn’t need to modify CampTix. You can probably use the https_ssl_verify filter in WordPress to disable the check. Just make sure you only disable it for the specific CampTix request, rather than for all requests.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fixed PayPal Error’ is closed to new replies.