PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Google Checkout Redirection

s2Member Plugin. A Membership plugin for WordPress®.

Google Checkout Redirection

Postby ckhicks » August 17th, 2011, 11:38 am

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?
User avatar
ckhicks
Registered User
Registered User
 
Posts: 7
Joined: July 30, 2011

Re: Google Checkout Redirection

Postby Cristián Lávaque » August 18th, 2011, 1:41 am

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?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Google Checkout Redirection

Postby ckhicks » August 18th, 2011, 11:19 am

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...
User avatar
ckhicks
Registered User
Registered User
 
Posts: 7
Joined: July 30, 2011

Re: Google Checkout Redirection

Postby Cristián Lávaque » August 18th, 2011, 3:06 pm

Exactly. In the generator, under the shortcode, you'll see the full code for the button.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests

cron