• jordan1990

    (@jordan1990)


    Is it possible to redirect my client from failed/canceled payment to the cart page or chackout page so he will have a chance to make payment again?

    And another question:

    Lets say my client try to pay for his products. Then something happend and he couldnt pay for it. He is going back to the site and see an empty cart. Is it possible to keep products in a cart until the payment will be successful? For not making some problems with a stock maybe it can keep that products for max. 60min?

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

    (@jordan1990)

    For this first question with redirection I found some solution:

    add_action(‘woocommerce_cancelled_order’,’lenura_redirect_to_home’);
    function lenura_redirect_to_home() {
    wp_redirect(home_url( ‘/checkout/’ )); // REDIRECT PATH
    }

    But the problem is that it redirects to the page where it shows that everything is just fine (simple checkout thank you page). I would like to set a link to the checkout page where client can pay for his order again.

    Plugin Author PayU GPO

    (@payusa)

    The payment is created for the placed order, so you can’t leave products in checkout.

    Payment again for order is possible – https://github.com/PayU-EMEA/woo-payu-payment-gateway/blob/master/README.EN.md#repayment

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirection after payment is unsuccessful’ is closed to new replies.