Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

add google checkout to payment page


Guest

Recommended Posts

how do I alter this to make the google checkout button be displayed in the payment options. I can get the button to show with this code

<?php

// ** GOOGLE CHECKOUT **

// Checks if the Google Checkout payment module has been enabled and if so

// includes gcheckout.php to add the Checkout button to the page

if (defined('MODULE_PAYMENT_GOOGLECHECKOUT_STATUS') && MODULE_PAYMENT_GOOGLECHECKOUT_STATUS == 'True') {

include_once('googlecheckout/gcheckout.php');

}

// ** END GOOGLE CHECKOUT **

?>

but it errors when i click on it and says must select payment method, the only palce i can out it is at the top right corner and it works fine.

 

the code below is cutting out of the payment page, but when i remark it out or change it, i get errors all over the place.

 

<?php

// ** GOOGLE CHECKOUT **

// Skips Google checkout as a payment option on the payments page since that option

// is provided in the checkout page

 

$selection = $payment_modules->selection();

for($i=0, $n=sizeof($selection); $i<$n; $i++) {

if($selection[$i]['id'] == 'googlecheckout') {

array_splice($selection, $i, 1);

break;

}

}

// ** END GOOGLE CHECKOUT **

 

 

if (sizeof($selection) > 0) {

?>

 

any genius php guru out there that can help me out a little on this one? Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...