• Resolved voliver

    (@voliver)


    I am trying out this plugin (it’s fantastic, btw) but I am having difficulties with the PayPal integration.

    I added my own config file for PayPal and set the path. I changed the settings in the file to try to point to the sandbox (with my sandbox creds) – I will put the file at the end.

    I can RSVP and I see the link to go to PayPal, but when I click the link, I just get an error page that shows:
    PayPal Error

    Ack Code:

    Correlation ID:

    Version:

    I have gone back and generated another file using the button on the settings page and used my production credentials, but I am getting exactly the same result. So I can’t get to either PayPal’s regular site or the sandbox.

    Any help here would be enormously appreciated!!!!

    ================== Sandbox Config File =======================
    <?php
    if( !defined( ‘ABSPATH’ ) )
    die( ‘Fatal error: Call to undefined function paypal_setup() in /home/acadmedd/public_html/staging/wp-content/uploads/brs5N8yu02rt9UUDDkTH.php on line 5’ );
    define(‘API_USERNAME’, ‘xxxxxxx’);
    define(‘API_PASSWORD’, ‘xxxxxxx’);
    define(‘API_SIGNATURE’, ‘xxxxxxx’);
    define(‘API_ENDPOINT’, ‘https://api-3t.paypal.com/nvp&#8217;);
    define(‘USE_PROXY’,FALSE);
    define(‘PROXY_HOST’, ‘127.0.0.1’);
    define(‘PROXY_PORT’, ‘808’);
    define(‘PAYPAL_URL’, ‘https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&useraction=commit&token=&#8217;);
    define(‘VERSION’, ‘3.0’);
    ?>
    =========================================

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter voliver

    (@voliver)

    I deleted this plugin and reinstalled it. I was able to connect to PayPal one time – I connected to the live site so I did not complete the payment. I tried to RSVP and pay with the same user a second time and I got back to the error page I mentioned above.

    I deleted the RSVP info in the admin console. Tried to rsvp/pay again, still got the error page.

    So how do I reset all of this so I can test – more than just once!

    And what is the procedure when a user cancels a payment, but wants to make the payment later?

    Thread Starter voliver

    (@voliver)

    Ok, finally figured this out.

    I went into the database and cleared out some crud that must have been created during some aborted attempts to get this working.

    After that, I was able to delete rsvp/payments in the dashboard and perform the action again in my test account.

    I also figured out why the sandbox wasn’t working. There are two URLs that need to be changed:

    define(‘API_ENDPOINT’, ‘https://api-3t.sandbox.paypal.com/nvp&#8217;);
    define(‘PAYPAL_URL’, ‘https://www.sandbox.paypal.com/webscr&cmd=_express-checkout&useraction=commit&token=&#8217;);

    The manual file that you have on your site (and on GitHub) only show change for PAYPAL_URL. I found that I also need to change API_ENDPOINT by hunting around in the PayPal docs for an hour or so.

    I hope this helps anyone else who is having similar issues. And thanks for this plugin – it really does exactly what I need!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Broke PayPal – getting error page with no code’ is closed to new replies.