WordPress.org

Ready to get started?Download WordPress

Forums

PayPal Framework
[resolved] Doesn't work with sandbox (5 posts)

  1. adalsanto
    Member
    Posted 1 year ago #

    Dear aaron,

    this is a great plugin that unfortunately fails to work on my server. Here is the problem.

    I have installed paypal framework and configured it. While testing the plug-in with sandbox, paypal framework sends transaction details to sandbox (I can see that from Paypal Sandbox website), but the listener does not receive the IPN message from sandbox or fails in checking if the IPN was correct (validation). Regardless I do not receive any messages and no actions are performed.

    Two possible reasons:

    1. Paypal framework is not configured based on the latest specs from Paypal (https://www.x.com/content/bulletin-ipn-and-pdt-scripts-and-http-1-1).

    2. Plesk blocks the IPN (http://kb.parallels.com/en/112756).

    But I do not know how to deal with these..

    Thank you,

    Andreas

    http://wordpress.org/extend/plugins/paypal-framework/

  2. Aaron D. Campbell
    Member
    Plugin Author

    Posted 1 year ago #

    It's possible that this relates to another issue that was reported, which was an accidental call to _() instead of __(). Other than that, it's still working for me here (just ran a couple tests) but I'm not on Plesk (nor do I have any servers that have Plesk).

  3. adalsanto
    Member
    Posted 1 year ago #

    Dear Aaron,

    Thank you for your prompt response. I have upgraded to the latest version and the plugin works.

    Now, I would like to use $resp from hashCall to show a confirmation message if the payment is successful. I looked at the code and noticed that the listener validates the response, but hashCall() does not. So, I wonder if I can rely on the information in the $resp['ACK'] from hashCall() to display a confirmation message to the user:

    if ($resp['ACK']=='Success') {
         echo ('Transaction OK! Thank you');
    }

    Also, I wonder if there is a 'trick' to display a 'thank you' page to the user once the listener has recorded the transaction in WP (I doubt, but I may be wrong).

    Thank you again,

    Andreas

  4. Aaron D. Campbell
    Member
    Plugin Author

    Posted 1 year ago #

    The response is returned, so something like:

    $resp = hashCall( $args );
    if ( ! is_wp_error( $resp ) ) {
    	//Send user to thank you page, send along any of $resp that you need.
    }
  5. adalsanto
    Member
    Posted 1 year ago #

    Thank you very much, Aaron. Andreas

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic