What I want to do now is ONLY have Google checkout and no other payment gateways available to the user. So when a user clicks 'checkout' on the 'view basket' stage, they are then directed to Google checkout - currently it takes them the account login screen/guest user page.
Is it possible to bypass this step and go straight to the google checkout.
Has anyone done this?
Thanks
Simon
Site finished:
http://www.labelstogo.co.uk
For the frontend, comment out any 'Checkout' links in the appropriate *.tpl files.
Finally, for the <div id="gcheckout">, defined in your
catalog/view/theme/default/template/module/gcheckout.tpl
catalog/view/theme/default/template/module/gcheckout2.tpl
change the style for that DIV to absolute positioning in your
catalog/view/theme/default/stylesheet/stylesheet.css
so it will show up in the place where you want it to be.
Or you could give that DIV a style="display:none;" and then copy it via a jQuery magic to an approriate
place in e.g. your checkout/cart.tpl, and then remove the 'display:none' style from it, so it gets shown.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
I have looked through the code an implemented the way you suggested amending the tpl files.
I have the checkout working correctly now.
However, I cant get the API callback working correctly.
Can the API callback actually create records in opencart showing the orders information from Google checkout or is that not possible??
Thanks
SImon
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
I have installed and configured google checkout latest version in to my OC v1.4.9.1. But my callback URL seems not working. I can see below error in the GC logs. Do I need to do anything with .Htaccess to enable basic Auth? I'm using Godaddy Linux host.
Error:
We encountered an error trying to access your server at https://www.site-name/index.php?route=c ... t/callback -- the error we got is Send failed with code: 401. Response body was: Failed to Get Basic Authentication Headers
Thanks! kathlk
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Thanks!
I'm using Go daddy-Linux hosting plan. When I ask go daddy to remove basic auth from my hosting plan, they replied to me as below.
Go daddy:
"Please note that BASIC Auth only exists on Windows based hosting accounts. As you are not using a Windows based hosting account, this would not be related to this error. "
Do you think I cannot continue with go daddy? Is this known problem with go daddy costumes?
Thanks
kathlk
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Yes I got SSL setup on go daddy. When I do searching on the web I found below solution and I implement that in my site. Seems it's working. But need to verify.
I enabled .htaccess and add the following lines:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^order/callback/googlecheckout$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
Now I can see my cart get empty when returning from the Google cart. Also I have seen new order created in open cart.
If I type my callback url directly on the browser, now I'm getting "/home/content/10/7049010/html/system/google/library/googleresponse.php on line 147Invalid Merchant Id/Key Pair"
Earlier I got "Cannot get Basic auth header etc".
So this means now my Basic auth disabled and call back working fine?
Q1: When you create Open cart order based on temp Google order, Do you set correct payment method? Because I still can see pay pall as payment method, which is my default in normal checkout process.
Q2: Do open cart keep Google order information in the final order
Regards
Kathlk
Seems now Google checkout working with Go daddy. But please see below work flow.
I have moved the Google checkout button to the confirmation section. Confirmation step show two payment options (PayPal, Google). So user do not see any difference in checkout flow.
(1) Every-time user pass confirmation page, open cart crate a order (Status = 0).
(2) If the payment success, the payment module update the order to correct state (order_status_id). This is working fine with paypal flow.
(3) If user select Google checkout, then open cart adding 'temp google order' at the google callback.
(4) When user returns to the open cart, We clear the shopping cart and this 'temp google order' entry. Working fine.
* But when we update the order with correct state "order_status_id" corresponding to the google order? Because I cannot see the correct status in my opencart order after payment success. But it remove the temp order and clear the cart.
I appreciate your help.
Thanks
Kathlk
Shipping get £0 cost always in GC:
=============================
I have setup latest GC with API 2.5 - v 1.4.9. But still I’m not getting correct shipping amount in the GC. When I looked at to GC integration consol, below error exist per each checkout call.
Error in GC log:
=============
Merchant Calculations: We were looking for data in your merchant-calculation-results, but were not able to find it: result: address-id:146020686898590 shipping-name: Flat Rate
<?xml version="1.0" encoding="utf-8"?>
<merchant-calculation-results xmlns="http://checkout.google.com/schema/2">
<results>
<result shipping-name="Flat Rate" address-id="623679875976966">
<shipping-rate currency="GBP">105</shipping-rate>
<shippable>true</shippable>
</result>
</results>
</merchant-calculation-results>
<?xml version="1.0" encoding="UTF-8"?>
<merchant-calculation-callback xmlns="http://checkout.google.com/schema/2" serial-number="04a687c1-591b-4be5-8e90-7b08a4e0438d">
<shopping-cart>
<merchant-private-data>
<reference>b035fca4d44d17fba70c5a64d83197c1</reference>
<currency>GBP</currency>
<language-id>1</language-id>
</merchant-private-data>
<items>
<item>
<item-weight value="2.2046" unit="LB" />
<tax-table-selector>Taxable Goods</tax-table-selector>
<item-name>Test Model:Test product</item-name>
<item-description>product #352</item-description>
<unit-price currency="GBP">0.1</unit-price>
<quantity>1</quantity>
<merchant-item-id>352</merchant-item-id>
</item>
</items>
</shopping-cart>
<buyer-id>905281438866203</buyer-id>
<calculate>
<addresses>
<anonymous-address id="146020686898590">
<country-code>GB</country-code>
<city>Flackwelheath</city>
<region>BUCKS</region>
<postal-code>HP101GG</postal-code>
</anonymous-address>
<anonymous-address id="623679875976966">
<country-code>GB</country-code>
<city>Heath</city>
<region>BUCKINGHAMSHIRE</region>
<postal-code>HP109JN</postal-code>
</anonymous-address>
</addresses>
<shipping>
<method name="Flat Rate" />
</shipping>
<tax>false</tax>
<merchant-code-strings />
</calculate>
<buyer-language>English</buyer-language>
</merchant-calculation-callback>
Any thoughts would be appriciated!
Thanks
kap
Have checked all your error logs?
Are you using a secure callback URL?
Are you using Notification as XML ?
Are you using API version 2.5.?
Does your server's access_log show the requests (.e.g. for merchant calculations) coming from Google?
Finally, I hope you are not using godaddy anymore!
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
I have post a detailed reply in different forum.
Apologies for double posting last time.
This problem only occurs if you have more than one shipping addresses in your Google settings. I can reproduce this in http://opencart-1-4-9.mhccorp.com now with my Google account now.
The problem exist if we user shot region name such as "BUCKS" instead of Buckingham. Also I have see the suggestion that Google recommended. According to them we need to add shipping (0, false) for such addresses.
Now this is working fine in my cart. I have changed the module little bit.
(Please see other forum for details)
Thanks
-kath-
Code: Select all
<form action="<?php echo $payment_url; ?>" method="post">
<input type="image" value="send" src="https://checkout.google.com/buttons/checkout.gif?merchant_id=<? echo $merchant_id; ?>&w=160&h=43&style=trans&variant=text&loc=en_US">
<input type="hidden" name="send" value="<? echo $merchant_id; ?>">
</form>
Code: Select all
PHP Notice: Undefined variable: payment_url
PHP Notice: Undefined variable: merchant_id
Users browsing this forum: No registered users and 5 guests