Support » Plugin: Razorpay for Gravity Forms » How to redirect user after payment on thank you page ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chetan

    (@chetangn)

    Hi @roupiarora

    As of now, we don’t have any configuration settings where the user can configure the redirect URL.

    But you can redirect to any page by applying the code level change in the plugin. For that, you need to apply the changes in the class-gf-razorpay.php file. Search for the following code snippet in the plugin file.

    1) <p style="font-size:17px;text-align:center;">Go back to the <strong><a href="<?php echo wp_get_referer(); ?>"><?php echo $ref_title; ?></a></strong> page. </p>

    2) setTimeout(function(){window.location.href="<?php echo wp_get_referer(); ?>"}, 1e3 * rzp_refresh_time)

    You can replace the wp_get_referer() function with your redirect URL.

    Thread Starter roupiarora

    (@roupiarora)

    But like this way, I will lost my changes when i received plugin update. can you please provide me any dynamic way ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to redirect user after payment on thank you page ?’ is closed to new replies.