Page 1 of 1

PayPal Button Success

PostPosted: March 10th, 2011, 12:33 pm
by BJedd
Does anyone know if the PayPal developer sandbox account works the same as any verified account? I'm trying to test a successful return to a page after checkout, but it doesn't seem to work with PayPal sandbox. The account is set up properly, the payment goes through correctly to PayPal, but it doesn't return to the success page on the site. Here's an example of the button code. Is there something I have missed?

[s2Member-PayPal-Button ids="180" exp="168" desc="The description of my product here." ps="SVPayPal" cc="USD" ns="1" custom="mysite.com" ra="7.95" sp="1" image="default" output="button" success="http://mysite.com/mylandingpage"/]

Thanks for you help.

Re: PayPal Button Success

PostPosted: March 10th, 2011, 1:08 pm
by Cristián Lávaque
From what I understand, it should work. Look, here's a quote from WP Admin -> s2Member -> PayPal Options -> PayPal Account Details

*Sandbox Tip* If you're testing your site through a PayPal® Sandbox account, please remember that Email Confirmations from s2Member will NOT be received after a test purchase. s2Member sends its Confirmation Emails to the PayPal® Email Address of the Customer. Since PayPal® Sandbox addresses are usually bogus ( for testing ), you will have to run live transactions before Email Confirmations from s2Member are received. That being said, all other s2Member functionality CAN be tested through a PayPal® Sandbox account. Email Confirmations are the only hang-up.

Re: PayPal Button Success

PostPosted: March 10th, 2011, 3:47 pm
by BJedd
After trying several things, still no response. I thought it was because I was still logged in as admin, but after logging out, it did not help. I have tried the PayPal button with both the success="http://mysite.com" and without. Neither method delivers me back to my success page from PayPal with any of the sandbox accounts/emails. I arrive at the PayPal "Test, thank you for your payment" PayPal page, but that is the end of the line. I would think that from there, it would redirect to my success page, but it doesn't.

Anyone have any experience otherwise?

Re: PayPal Button Success

PostPosted: March 10th, 2011, 4:01 pm
by BJedd
I think I discovered the "duh" solution. Apparently, you have to manually click the yellow "Return to Merchant" button from the the PayPal Thank You page. Then it redirects to your success page.

Re: PayPal Button Success

PostPosted: March 10th, 2011, 4:10 pm
by Cristián Lávaque
Glad you solved it. :)

I'd have thought that the redirection occurs, though, without requiring the customer to click a button. I wonder if out of the sandbox it'd behave differently.