Jlevin, yes once the donation process completed system redirecting to same page with the message received from Authorize.net.
But you can redirect to any other page based on success/failure. For this you will need to make small change in one file. Here is the steps on how to do:
1. Go to plugin’s include directory. The path should be like ‘wp-content/plugins/wp-donate/includes’
2. Edit ‘donate-display.php’ file
3. Around line number 89 you will find a line of code like
header("Location:".site_url().$_SERVER['REQUEST_URI']);
4. You can add any custom page name here, for example
header("Location:".site_url().'/thankyou-page');
Note: you will need to create thankyou page before specifying it in URL.
Hope it will help.
https://wordpress.org/plugins/wp-donate
Thread Starter
jlevin
(@jlevin)
Wonferful,
Which one is success and which is failure, or are these both success.
header("Location:".site_url().$_SERVER['thank-you/']);
exit;
}
else
{
header("Location:".site_url().$_SERVER['REQUEST_URI']);
exit;
}
}
}
The first header() “In if condition” is for success and second one “In else condition” is for failure.
ketanajani,
Thank you for your helpful plugin. I have read the thread above and for some reason I am always getting the “else” website. I have a sandbox account through authorized.net and am using the API & transaction key from that. My sandbox account is in test mode and I have configured the settings in WP Donate as test mode with the same API and transaction key.
Am I missing something in the test mode?
Thanks!
-Kyle