Jump to content

Google Checkout - Multiple prestashop sites


Recommended Posts

We have a google checkout account, but wish to use it with multiple prestashops,

In the Google checkout intergration on google you have to set a return url for a successfull transaction so this obviously stops the use of multiple prestashops,

but looking at the google api, you can sent google the return checkout url when connecting

as follows

<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.continue-shopping-url" value="http://www.example.com"/> 



Looking at the google checkout module I noticed the following

$googleCart->SetContinueShoppingUrl('http://'.$_SERVER['HTTP_HOST'].__PS_BASE_URI__.'order-confirmation.php');



Is it possible just to add

$googleCart->Setcheckout-flow-support.merchant-checkout-flow-support.continue-shopping-url('https://'.$_SERVER['HTTP_HOST'].__PS_BASE_URI__.'modules/gcheckout/validation.php');



To allow multiple site then remove the return url from our google checkout account settings

Just tried in sandbox mode and it fails, so more mods needed

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...