Support

Home Forums Event Espresso Premium Paypal wrong REG-ID

Paypal wrong REG-ID

Posted: July 20, 2012 at 12:04 pm


nfortin1

July 20, 2012 at 12:04 pm

Hi,

Since our last update (3.1.24.1.P) Our registration ID seems wrong and they aren’t being completed by paypal.

See here: http://img690.imageshack.us/img690/3980/espressocode.png

1-ID seems to be broken (even if paypal received completly the payment). And the other ID seems normal.

Any idea why and how to fix this?

Thanks


Josh

  • Support Staff

July 20, 2012 at 4:03 pm

The second registration appears to be added by the admin, which would explain the different type of ID.

I seem to remember Patrick needed to modify the PayPal gateway because the CA cert file could not be found. Did this modification get overwritten on the update? I dug up the email he had sent, which included the patch added to the gateways/paypal/paypal.php:

        $error["set_timeout"] = curl_setopt($ch, CURLOPT_TIMEOUT, 45); // Sets a time limit for curl in seconds (do not set too low)
        $error["set_post"] = curl_setopt($ch, CURLOPT_POST, 1); // Set curl to send data using post
        $error["set_post_fields"] = curl_setopt($ch, CURLOPT_POSTFIELDS, $req); // Add the request parameters to the post
      curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem'); // HACKFEST PATCH
        $errors .= $error["set_host"] ? "Success" : "Failure";
        $errors .= " Setting host: " . $url . "\n";
        $errors .= $error["set_post"] ? "Success" : "Failure";

The Paypal gateway should be copied over to /wp-content/uploads/espresso/gateway so the changes do not get overwritten.


nfortin1

July 20, 2012 at 9:49 pm

Thanks, it has been overwritten as I didn’t tought about gateway change but only template modifications!

I will try to see if it gets completed now. I’ll keep you post.

The support post ‘Paypal wrong REG-ID’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso