Author Topic: abantecart and googlewallet return URL set up for google checkout integration  (Read 15304 times)

Offline mreamant

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-1
    • View Profile

I used the test url suggested under Abantecard extensions for google checkout which I enabled and selected HTML as suggested for sandbox return URL in google checkout, but it does not return.  I also used API version 2 which was recommended by google if I didn't know which one to use, no suggestin in abantecart.  google wallet suggested "https://..." not "http:.." and I tried both, but abantecart has set as http...so a mismatch there. 

Anyway, it doesn't return to the URL when I set it up under google wallet integration for sandbox.  How do I handle this so it will return after purchase with google wallet?


Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4662
  • Karma: +241/-2
    • View Profile
Hello.

Please check in the google checkout sell sanbox Settings->Profile->
Public business website: fullurltoyoursite/index.php?rt=checkout/success

Also in the Setting->Integration
API callback URL:  fullurltoyoursite/index.php?rt=extension/google_checkout/callback
Callback contents: Notification as XML

Note: https will work only if correctly setup it on server side and enable it in AbanteCart settings.

Offline mreamant

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-1
    • View Profile
so does this  fullurltoyoursite/index.php?rt=extension/google_checkout/callback go into the payment extension callback API too?  Also, how would paypal be set up for the return url?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4662
  • Karma: +241/-2
    • View Profile
Hi.

Go to Admin-Extensions-Payment-Google Checkout.
Click on HELP button on the right top  - there is short manual for google checkout extension

Offline mreamant

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-1
    • View Profile
Hi,

I went to admin, payment, extensions, google checkout, and clicked on help in upper right corner; it points to abantecart help for extensions and not a manual.  Hmmm, my search continues.

Offline mreamant

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-1
    • View Profile
I went to google sandbox instead to try to find out further info.  It indicates to contact the integrated shopping cart solution (in this case, AbanteCart) to get the appropriate api return link.

The below is cut and pasted from google's sandbox documentation:

Pre-integrated Shopping Cart - To add Google Wallet to your website via a pre-integrated shopping cart:
1.Choose one of the shopping cart providers in the list of integration partners below. If you already have a pre-integrated shopping cart, confirm that your business uses one of the integration partners in the list below.
2.Locate your Merchant ID and Key in the Google Checkout Merchant Center.
3.Visit the website of the appropriate shopping cart provider and provide your Merchant ID and Merchant Key. Specific steps vary by shopping cart provider. For more information, please contact the cart provider representative responsible for your business's account.
 
Pre-integrated Order Processing - If you'd like to process Google Checkout orders in your pre-integrated shopping cart, ask your shopping cart provider for the appropriate API callback URL then enter this information in the Google Checkout Merchant Center.
 

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4662
  • Karma: +241/-2
    • View Profile
Hi,

I went to admin, payment, extensions, google checkout, and clicked on help in upper right corner; it points to abantecart help for extensions and not a manual.  Hmmm, my search continues.

Hello. Just copy for you short manual from extension manual (from HELP button)
-------------------------------------------------------------------
This manual is to help you configure extension with Google Checkout service

1. Go to http://www.google.com/checkout and create merchant account.

2. Once you are subscribed, You will need to go to settings and fill in your profile.
Note: you need to set Public business website field by URL like https://YOUR_DOMAIN/index.php?rt=checkout/success to direct customer on success page after buying.

3. Go to https://www.google.com/checkout/sell/settings?section=Integration and set callback url as
https://YOUR_DOMAIN/index.php?rt=extension/google_checkout/callback Also choose API content "Notification as HTML". Note: You need to turn on SSL in your AbanteCart settings and configure your server to have valid SSl signed sertificate. Refer to your hosting provider for SSL configuration

4. Go to your AbanteCart Google Checkout Extension edit page and fill in all fields by given Merchant ID and Key from integration settings page of Google checkout.

5. If you need to test extension with google checkout sandbox go to https://developers.google.com/checkout/developer/Google_Checkout_Basic_HTML_Sandbox#Locate_ID_and_Key and follow steps.

NOTE: This extension provides order final total amount to Google Checkout to handle payment. If you need to pass all order details to Google Checkout, you need to get Google Checkout Advanced Extension.
-------------------------------------------------------------------

 ;)

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1840
  • Karma: +277/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
hi. please replace file public_html/extensions/google_checkout/storefront/controller/responses/extension/google_checkout.php
by given (see attachment).
now will return to success/page anyway.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1840
  • Karma: +277/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
just "save as" and replace file
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline mreamant

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-1
    • View Profile
Yes, I figured it out, thanks.  I did save the old file in case of a problem. 

So in my extension callback, I will have the same callback API as what I put in the google settings.  I'll try it in a few minutes and see if it successfully returns.  In short, I'm trying to test the ability to download a pdf file following successful purchase. 

Offline mreamant

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-1
    • View Profile
Oh and when the website goes into production with google checkout, do I need to change this file back or leave as is?

Offline mreamant

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-1
    • View Profile
Well I just tested it, and it didn't AUTOMATICALLY return to checkout; I had to click on the return to website link as I did before and it did not allow a downnload of the pdf following purchase.  So, still not working.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1840
  • Karma: +277/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
google checkout do not  AUTOMATICALLY return. i don't know why. Probably you have to ask google checkout support about it.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline mreamant

  • Newbie
  • *
  • Posts: 33
  • Karma: +0/-1
    • View Profile
Hmmm OK but when I return it still doesn't allow download of PDF...how about PayPal does that automatically return

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1840
  • Karma: +277/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
downloads placed in account page. probably you need to change text on your "success" page( via language definition section)... to give download link to customer.
but this approach i good only if you sell only files and you trusting payment provider.
Note: download link will appear only if status order become "complete".
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod