Redirect after payment
-
Hi, is it possible that after paying it will go back to the checkout page or thank you page?
-
Hello @davidecho ,
Thank you for reaching out to us, we’re here to help.
Yes, it is possible to configure the behavior of the PayPal Payments plugin to redirect users to a specific page, such as the checkout page or the thank you page, after they complete their payment.
May we understand what is the reason you would like to skip the Thank You page and send the buyer back to the checkout page with an empty cart? While it is technically possible to do so, we would like to understand what was the reason behind this.
Typically the redirect to Thank You page is automatically handled by the PayPal Payments plugin. However if you wish to redirect to Checkout Page, you may need to implement custom code or use a plugin that allows you to modify the redirect URL.
Best Regards,
Jamie-
This reply was modified 1 year, 9 months ago by
Syde Jamie.
Hi Syd Jamie,
I added the below code to redirect:
add_action(‘template_redirect’, ‘custom_redirect_after_payment’);
function custom_redirect_after_payment() {
if (is_order_received_page()) {
wp_redirect(wc_get_checkout_url());
exit;
}
}
But it is still not working can you advise what else we can do here?
Hi can I get help about this urgently.
As orders paid using paypal are being cancelled and I think it is because of users not being redirected to the thank you page or checkout page. There is no order confirmation being done hence orders are being cancelled even though payment was made.
I’m seeing this note on the orders Unpaid order cancelled – time limit reached. Order status changed from Pending payment to Cancelled.
Can this be looked at urgently please !!!!
Hello @davidecho
We suggest you contact us directly for further assistance, this will speed up resolution with this problem.
You can open a ticket with our service desk. Here’s how you can request support: Request Support. Please make sure to include the URL of this thread in your ticket for reference.I’m looking forward to your response.
Kind regards,
KrystianHello @davidecho
Since the issue has been moved to the private support board, we consider this thread resolved.
If you still have any questions or if a new problem arises, don’t hesitate to open a new thread.Kind regards,
Krystian -
This reply was modified 1 year, 9 months ago by
The topic ‘Redirect after payment’ is closed to new replies.