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.

success= url appended with escape chars

Home Forums Community Forum success= url appended with escape chars

This topic contains 4 replies, has 2 voices. Last updated by  Joanne Stuhmcke 3 years, 7 months ago.

Topic Author Topic
Posted: Wednesday Jun 5th, 2013 at 10:13 pm #51441

using Version 130406 + s2Member® Pro v130406

All was working fine during testing but now that we have gone live, the payment process is not able to redirect to the specified success= URL.

Payment process itself works fine but on redirect, users get a 404 error because the URL seems to have been appended to the site and characters have been escaped. Below is the URL from the address bar that produces the 404
http://meandmoney.com.au/http%3A%2F%2Fmeandmoney.com.au%2Fpayment-return-page%2F

In paypal api log file, it is shown as below:

‘L_BUTTONVAR3’ => ‘return=http://meandmoney.com.au/?s2member_paypal_return=1&s2member_paypal_return_tra=fnIyOkJnWG01Vk9CQ2RIU1dCS2JwVXhLenNFaHlOY0REdXFTOmNkZTZlOGNkYzM2ZGQ3NzIzZjVlM2U2ODIxYThjMThhfN4ti6JeQ-Haw0aukRQJ0QeaPh_l0bcSydxe8bhJxOv9W7k5Zi7dNGqT0nbruFCx6-AkiQUj3rSOSxBfBhs-TJ10Lg-XWYVLOmnE7Z2BGLMieaFaW-NLRolf3T7-xoFb8TDih62n2u2y7BL0-WyIicrhmJQxRs7cQXn9puk5k2QSJbkH1u1JI3bN_41fHdlbJ3ytgKnM61YSQ1QWgFl6j7Vp7L5u8a7mBXl64XZWg7DNv1yTxZFN7kgQ6TGufA27IqIEI1KkdXAAKdmdIQXDMD6XcRHCFAbi9kVVgcxnH3LzSd3ovJh-43sY7ee7JEo5oJsmO9dvfMUcc8SEjy0Q2Q5PNLPuP806_eUcUXLW4LbrAJOffHe3IQ6LUqmfNBgntA&s2member_paypal_return_success=http%3A%2F%2Fmeandmoney.com.au%2Fpayment-return-page%2F’,

This is the button shortcode being used:

[s2Member-PayPal-Button level="1" ccaps="" desc="Companion for Life / once only fee of $50.00 AUD" ps="companion_pp_style" lc="" cc="AUD" dg="0" ns="1" custom="meandmoney.com.au" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="L" rr="BN" rrt="" rra="1" image="http://meandmoney.com.au/wp-content/uploads/2013/03/join_now_pp_200x49.png" success="http://meandmoney.com.au/payment-return-page/" output="button" /]

Any ideas on how to fix this?

Thanks

List Of Topic Replies

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Thursday Jun 6th, 2013 at 8:57 am #51508
Bruce
Username: Bruce
Staff Member

Thank you for reporting this important issue.

It looks like there’s something funny going on with your URL encrypting here. Can you try this Shortcode instead and see if it works better for you?

[s2Member-PayPal-Button level="1" ccaps="" desc="Companion for Life / once only fee of $50.00 AUD" ps="companion_pp_style" lc="" cc="AUD" dg="0" ns="1" custom="meandmoney.com.au" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="L" rr="BN" rrt="" rra="1" image="http://meandmoney.com.au/wp-content/uploads/2013/03/join_now_pp_200x49.png" success="/payment-return-page/" output="button" /]
Posted: Thursday Jun 6th, 2013 at 7:13 pm #51549

Hi Bruce,

Thanks for that – your modified short code fixes the success redirect issue.

Has something changed re: the success redirect shortcode?

I was going by the backend documentation in Shortcode Attributes (explained) that states the success URL must be a full URL starting with http://

Or could something have changed on our host server that affected the encoding?

Thanks again for the quick response.

Posted: Friday Jun 7th, 2013 at 6:44 am #51587
Bruce
Username: Bruce
Staff Member

Has something changed re: the success redirect shortcode?

I was going by the backend documentation in Shortcode Attributes (explained) that states the success URL must be a full URL starting with http://

Or could something have changed on our host server that affected the encoding?

s2Member’s success attribute has always been able to use this kind of URL for redirection. The information here is valid for both Pro Forms and Buttons:

Dashboard -› s2Member® -› PayPal® Pro Forms -› Custom Return URLs Upon Success

It’s likely that this is a problem with some encoding on your specific server. It shouldn’t be an issue if this setup works for you, but I might have a developer check it out.

Posted: Friday Jun 7th, 2013 at 7:34 pm #51636

That’s all good – thanks again!

Viewing 4 replies - 1 through 4 (of 4 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.