Page 1 of 1

Google Checkout Redirection

PostPosted: August 17th, 2011, 11:38 am
by ckhicks
Hey all, I'm looking for information on the Google Checkout links after payment. What I'm finding is that Google wants all successful purchases to be redirected to wp-login.php on my site...but I want them to go somewhere else. :)

Here are the two methods I've seen for redirection in the Google Checkout API:

Code: Select all
<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.continue-shopping-url" value="http://domain.com/thank-you" />

or

Code: Select all
<continue-shopping-url> http://www.example.com/thank-you </continue-shopping-url>


I've poked through a few of the s2Member files, but the only redirection I can find is for purchasing access to specific pages/posts. Anyone know of a way to redirect *all* successful payments to a specific location?

Re: Google Checkout Redirection

PostPosted: August 18th, 2011, 1:41 am
by Cristián Lávaque
I don't see a success attribute for Google Checkout button shortcodes. WP Admin -> s2Member -> Google Buttons -> Shortcode Attributes (Explained)

Have you tried adding the checkout-flow-support.merchant-checkout-flow-support.continue-shopping-url var to the URL the button links to?

Re: Google Checkout Redirection

PostPosted: August 18th, 2011, 11:19 am
by ckhicks
Hmm, I have tried, but the shortcode doesn't let me set attributes on the button itself. I suppose I could try generating the code without using the shortcodes and give this a shot...

Re: Google Checkout Redirection

PostPosted: August 18th, 2011, 3:06 pm
by Cristián Lávaque
Exactly. In the generator, under the shortcode, you'll see the full code for the button.