I’m using the Auth.Net integration, and I’m trying to use the “success” attribute in my Form Shortcode.
If I set it to “/checkout/thankyou”, it’s ignored, and the user gets the standard thank you message on the checkout page.
If I set it to the full url of the site, “https://myauditprotection.com/checkout/thankyou”, the user gets redirected to this:
https://myauditprotection.com/checkout/checkout-standard/https%3A%2F%2Fmyauditprotection.com%2Fcheckout%2Fthank-you?s2p-v=1339634636-03ba4b8672f1f5e63fc540a4373d16af
It looks like it’s encoding the redirection url first and then appending it. I believe the relevant section of code is in:
s2member-pro/includes/classes/gateways/authnet/authnet-chekcout-in.inc.php
around line 473
if ($post_vars["attr"]["success"] && substr ($ipn["s2member_authnet_proxy_return_url"], 0, 2) === substr ($post_vars["attr"]["success"], 0, 2) && ($custom_success_url = str_ireplace (array ("%%s_response%%", "%%response%%"), array (urlencode (c_ws_plugin__s2member_utils_encryption::encrypt ($global_response["response"])), urlencode ($global_response["response"])), $ipn["s2member_authnet_proxy_return_url"])) && ($custom_success_url = trim (preg_replace ("/%%(.+?)%%/i", "", $custom_success_url))))
wp_redirect (c_ws_plugin__s2member_utils_urls::add_s2member_sig ($custom_success_url, "s2p-v")) . exit ();