Hook to redirect after successful paypal transaction
-
Hi.
I know I can change the URL for the thank-you page in admin for all PayPal transaction to redirect to but I only need to change it for one specific event.
I have managed to redirect to different page on a successful booking for a free ticket but I need to redirect after the PayPal transaction has gone through.
This is my functioning code for a free ticket – (I enqueue this to run for a specific post ID in my theme functions).jQuery(document).ready( function($){ jQuery(document).bind('em_booking_success', function() { dataLayer.push({'event': 'mytrackingcode'}); window.location.href = 'http:mynewlocation.html '; }); });
Thanks in advance for your help
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Hook to redirect after successful paypal transaction’ is closed to new replies.