Support » Plugin: WP eCommerce » [Plugin: WP e-Commerce] Freezes on transaction results

  • Resolved dowsed


    Hi There,

    I’ve just successfully installed the plug-in and gotten all the features I want working. The only problem I am having is that the transaction results page doesn’t refresh to a completed payment message once you “confirm payment”. This is even though the payment has gone through too.

    Is this a bug that anyone else has noticed? Is it flagged for the next update? Or is it something that I need to resolve.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Justin Sainton


    Hi there,

    This is not an issue I have heard of elsewhere. Generally if there is a successful transaction, the transaction results page will reflect that.

    What payment gateway are you using? Is it a custom module or something native to the plugin?

    Hi dowsed,
    I had same problem with the paypal express checkout module, on a test site with XAMPP. It turned out it was timing out when doing the final communications with paypal I think. I altered timeout value in file plugins/wp-e-commerce/wpsc-merchants/paypal-express.merchant.php from 5 to 20 and that worked for me.
    Whatever you are using as your payment module may be a similar solution.

    To anyone encountering this with the paypal express module—
    From memory the code appears to check for the timeout error but then doesn’t seem to finish handling the error completely. Hopefully justinsainton will see this and follow it up.
    The timeout value was in 2 separate places in the file and I changed both.
    Search the file for “timeout” and you will get both

    Plugin Author Justin Sainton


    I’ll add a ticket for increasing the general timeout settings across the board in WPeC

    That said, in the meantime, you can filter all timeout calls through the WP HTTP API. You’d want the ‘http_request_args’ filter. Here’s a quick example you could throw in your theme’s functions.php file to ensure all requests have a timeout of 20 seconds, no matter what.

    function js_increase_all_http_timeouts( $args, $url ) {
    	$args['timeout'] = 20;
    	return $args;
    add_filter( 'http_request_args', 'js_increase_all_http_timeouts', 10, 2 );

    Certainly, you could limit it by the URL if you’d like to with the second parameter there. But this code would enable you to experience the same fix without hacking core.

    Just wanted to say that increasing the timeout resolved this issue for me.

    Many thanks for posting the solution guys.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP e-Commerce] Freezes on transaction results’ is closed to new replies.