WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Doesn't work with sandbox

[Resolved] Doesn't work with sandbox

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Aaron D. Campbell

    @aaroncampbell

    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).

    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

    Plugin Author Aaron D. Campbell

    @aaroncampbell

    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.
    }

    Thank you very much, Aaron. Andreas

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Doesn't work with sandbox’ is closed to new replies.