google checkout payment option not showing

jkbenzi

Joined: 2009-09-03
Posts: 16
Posted: Thu, 2009-09-03 16:33

I have been using Gallery 2 for quite some time. I previously was running an older version of checkout and google checkout that worked well. I upgraded my gallery recently and upgraded checkout and google checkout also. I have everything setup correctly and have https enabled on my site per google requirements. I did the send test notification and it came back fine but my problem is when I go to checkout I don't see the google payment option?

 
alecmyers

Joined: 2006-08-01
Posts: 4338
Posted: Thu, 2009-09-03 23:38

Revisit the module configuration page and make sure the "use this payment method" is set on.

 
jkbenzi

Joined: 2009-09-03
Posts: 16
Posted: Fri, 2009-09-04 13:02

Thanks for your response. Under Google Checkout Settings 'Activate this method of payment?' is set to yes. I have added permissions for add to cart for everybody. My website it s https:\\www.anyeventvideo.com\Xtreme.

AttachmentSize
google checkout settings.jpg178.78 KB
 
alecmyers

Joined: 2006-08-01
Posts: 4338
Posted: Fri, 2009-09-04 15:38

I'm unable to add any products to your cart - I get a blank white page (usually indicative of a php error).

 
jkbenzi

Joined: 2009-09-03
Posts: 16
Posted: Fri, 2009-09-04 16:22

Yeah, I was using Chrome but now I tried on IE and I have the same problem. It does work fine when not using https: though? Try going to http://www.anyeventvideo.com/Xtreme/main.php

Any thought on why this would be happening?

 
alecmyers

Joined: 2006-08-01
Posts: 4338
Posted: Sun, 2009-09-06 02:07

Go back to the default theme and see if you can reproduce the problem.

 
jkbenzi

Joined: 2009-09-03
Posts: 16
Posted: Tue, 2009-09-08 17:10

Default theme is enabled. Checkout is working through IE now. Still not able to see the Payment option for Google, however.

 
dmcantrell

Joined: 2007-10-04
Posts: 24
Posted: Mon, 2009-09-14 23:29

I am having the exact same problems.

* Google checkout option not showing up in cart checkout process
* Gallery 2.3 Server technologies: LINUX, PHP 4.3, CGI 2.0, PERL 5.0, PYTHON 2.4, RUBY 1.8.4, MYSQL 4.0.27, 4.1, 5.0
* Successful https:// test performed and callback url entered into Google Checkout as per the instructions here : http://codex.gallery2.org/Gallery_2:Modules:checkoutgoogle
* All configuration options entered correctly as per the instructions here : http://codex.gallery2.org/Gallery_2:Modules:checkoutgoogle

Thanks,

Dave

 
alecmyers

Joined: 2006-08-01
Posts: 4338
Posted: Mon, 2009-09-14 23:35

Put some random text at the top of file checkoutgoogle/templates/Payment.tpl (*before* the line beginnning {if $payment.paymentVariables.active} ....) flush your template cache and see if it shows up.

Also be aware that checkoutgoogle only shows as a payment option if the order total is non-zero.

 
dmcantrell

Joined: 2007-10-04
Posts: 24
Posted: Mon, 2009-09-14 23:47

The random text is not showing up.

2 questions :

1) How do I determine if I need to be using URL rewrite?
2) I have a SSL version of my website. Do I need to be using that version for all the activity, or does the checkoutgoogle module use the https:// version for whatever it needs to do? i.e. Do I need to be pointing my customers to the https://my_website/galery/main.php ?

 
alecmyers

Joined: 2006-08-01
Posts: 4338
Posted: Tue, 2009-09-15 00:01
Quote:
The random text is not showing up.

Edit file checkout/classes/CheckoutInterfaceHelper.class, insert after line 62 beginning " foreach ($ids as $id => $className) {" the following:

echo "<pre>";
print "Found $classname    ";
echo "</pre>";

... and report, please.

EDIT: also add at line 78 (before "return ..."):

echo "<pre>";
print_r($plugins);
echo "</pre>";
Quote:
1) How do I determine if I need to be using URL rewrite?

You don't need to be using URL rewrite.

Quote:
I have a SSL version of my website. Do I need to be using that version for all the activity,

No

Quote:
or does the checkoutgoogle module use the https:// version for whatever it needs to do?

yes

Quote:
i.e. Do I need to be pointing my customers to the https://my_website/galery/main.php ?

No

 
alecmyers

Joined: 2006-08-01
Posts: 4338
Posted: Tue, 2009-09-15 00:13
Quote:
1) How do I determine if I need to be using URL rewrite?

Correction to what I wrote earlier (for future reference) - if you get the

Quote:
Successful https:// test performed

then either you don't need to be using URL rewrite, or you are already using it. It shouldn't be relevant to this issue.

 
dmcantrell

Joined: 2007-10-04
Posts: 24
Posted: Tue, 2009-09-15 00:36

okay, now I get all this at the top of the page, above the cart contents :

(still no google checkout option though, no button)

Perhaps I am misunderstanding the options here -- I am assuming there is supposed to be a "button" or something that says google checkout. Is that the case?

Is there a working example of this that I can look at?

Found     
Found     
Found     
Array
(
    [CheckoutPaypalPayment] => Array
        (
            [paymentTemplate] => modules/checkoutpaypal/templates/Payment.tpl
            [paymentVariables] => Array
                (
                    [active] => 1
                    [paypalname] => 
                    [ppurl] => www.paypal.com
                    [ccode] => USD
                    [langCountry] => US
                    [countrycode] => 
                    [imageUrl] => http://url_removed.com/images/logo_with_webaddress.gif
                    [transactionId] => 327
                    [ppItems] => Array
                        (
                            [1] => Array
                                (
                                    [ppname] => item_name_1
                                    [name] => 20080302_5089_e1_800.jpg
                                    [number] => 212
                                    [ppnumber] => item_number_1
                                    [ppquantity] => quantity_1
                                    [ppamount] => amount_1
                                    [ppshipping] => shipping_1
                                    [amount] => 7.00
                                    [quantity] => 1
                                    [options] => Array
                                        (
                                            [on0_1] => Product
                                            [os0_1] => 5" x 7" print
                                            [on1_1] => Notes:
                                            [os1_1] => glossy
                                        )

                                    [shipping] => 0
                                )

                            [2] => Array
                                (
                                    [ppname] => item_name_2
                                    [name] => Shipping
                                    [ppquantity] => quantity_2
                                    [quantity] => 1
                                    [ppamount] => amount_2
                                    [amount] => 5.99
                                    [options] => Array
                                        (
                                            [on0_2] => Category
                                            [os0_2] => standard delivery 3-5 business days
                                        )

                                    [ppnumber] => item_number_2
                                    [number] => 
                                    [ppshipping] => shipping_2
                                    [shipping] => 0
                                )

                        )

                    [verify] => Array
                        (
                            [1] => 1252973996
                            [2] => 2446394144aaeddac5453d1.72848013
                        )

                    [pprtnbuttontext] => Return to 3and3studios.com
                    [orderTotal] => 12.99
                )

        )

    [CheckoutEmailPayment] => Array
        (
            [paymentTemplate] => modules/checkoutemail/templates/Payment.tpl
            [paymentVariables] => Array
                (
                    [paymentButtonText] => Send Email
                    [paymentText] => To work out an alternate method of payment (like a personal check or cash) please click here.  This will send an email to 3&3 Studios with your payment request.  3&3 Studios will contact you to arrange for payment processing.  

NOTE: This option will incur an extra $10.00 service charge.
                    [active] => true
                )

        )

    [CheckoutGooglePayment] => Array
        (
            [paymentTemplate] => modules/checkoutgoogle/templates/Payment.tpl
            [paymentVariables] => Array
                (
                    [active] => 1
                    [mode] => live
                    [orderTotal] => 12.99
                    [merchantId] => merchat_id_removed
                    [loc] => en_US
                )

        )

)

 
alecmyers

Joined: 2006-08-01
Posts: 4338
Posted: Tue, 2009-09-15 00:37

Now edit file checkout/templates/Confirm.tpl - add after line 64 "{foreach from $tpl.payments...}" the following:

Now attempting to load template {$payment.paymentTemplate}

and try again.....

 
dmcantrell

Joined: 2007-10-04
Posts: 24
Posted: Tue, 2009-09-15 00:45

okay, down in the section where the buttons are I get this :

Now attempting to load template modules/checkoutpaypal/templates/Payment.tpl  Clicking the PayPal button will redirect you to PayPal where you can pay by credit card. Your information is securely encrypted and cannot be intercepted. You do not need a PayPal account to complete the transaction via PayPal.                                    
    
Now attempting to load template modules/checkoutemail/templates/Payment.tpl  To work out an alternate method of payment (like a personal check or cash) please click here. This will send an email to 3&3 Studios with your payment request. 3&3 Studios will contact you to arrange for payment processing. NOTE: This option will incur an extra $10.00 service charge.         
    
Now attempting to load template modules/checkoutgoogle/templates/Payment.tpl  

and a screenshot : http://img.photobucket.com/albums/v51/dmcantrell/junk/screenshot.gif

 
dmcantrell

Joined: 2007-10-04
Posts: 24
Posted: Tue, 2009-09-15 01:43

Hello,

As a general update, alec and I debugged this outside of this forum.

The resolution is to change one line in one of the checkoutgoogle template files and remove the redundant "{g->text" statement.

OLD : modules/checkoutgoogle/templates/Payment.tpl, line 13

{g->text {g->text l10Domain="modules_checkoutgoogle" text="Click the Google Checkout button to transfer to Google to enter your customer and payment details for this order."}

NEW : modules/checkoutgoogle/templates/Payment.tpl, line 13

{g->text l10Domain="modules_checkoutgoogle" text="Click the Google Checkout button to transfer to Google to enter your customer and payment details for this order."}

Thanks! I have confirmed that this fix works as expected.

 
alecmyers

Joined: 2006-08-01
Posts: 4338
Posted: Tue, 2009-09-15 01:47

Well I guess that's fairly conclusive evidence that nobody else has tried using this module in the 5 months since I accidentally introduced a massive typo into a template file that borked the module. Also that I clearly didn't test it out after making a couple of minor textual changes...

Slap on the wrist to me, and thanks to dmcantrell for making me chase it down. The repository has been updated, the new version should appear all being well in the downloadable plugins page in six hours time. You are looking for code revision 1896.

 
jkbenzi

Joined: 2009-09-03
Posts: 16
Posted: Tue, 2009-09-15 14:10

I would like to thank you for your work on this. The problem is fixed after changing the payment.tpl.