latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Custom Return URLs Upon Success – Problems

Home Forums Community Forum Custom Return URLs Upon Success – Problems

Tagged: ,

This topic contains 3 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years, 6 months ago.

Topic Author Topic
Posted: Wednesday Jun 13th, 2012 at 8:59 pm #16409
bball
Username: brandonba

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 ();

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Thursday Jun 14th, 2012 at 8:16 am #16451

Hi Brandon.

I tried https://myauditprotection.com/checkout/thankyou and it gave me a 404, so I tried https://myauditprotection.com/checkout/thank-you/ and that worked. Did you try the success attribute with that URL?

Posted: Thursday Jun 14th, 2012 at 8:20 am #16452
bball
Username: brandonba

Yes, sorry. The examples should be:

/checkout/thank-you

and

https://myauditprotection.com/checkout/thank-you
  • This reply was modified 4 years, 6 months ago by  bball.
  • This reply was modified 4 years, 6 months ago by  bball.
Posted: Thursday Jun 14th, 2012 at 8:41 am #16462

Ah, got ya.

I’d like to test the checkout and see what happens. Would you mind creating a test page with a pro-form for 1 cent so I try it? You can send me the URL to the page using the contact form. s2Member® » Private Contact Form

If you include the login info, then I could check the configuration too.

Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.