AbanteCart Community

AbanteCart Development => Extensions and Add-Ons => Payment Modules => Topic started by: mreamant on February 17, 2013, 11:15:52 AM

Title: abantecart and googlewallet return URL set up for google checkout integration
Post by: mreamant on February 17, 2013, 11:15:52 AM

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?

Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: Basara on February 18, 2013, 01:36:21 AM
Hello.

Please check in the google checkout sell sanbox (https://sandbox.google.com/checkout/sell/settings?section=Profile) 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.
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: mreamant on February 26, 2013, 01:38:23 PM
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?
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: Basara on February 27, 2013, 03:03:26 AM
Hi.

Go to Admin-Extensions-Payment-Google Checkout.
Click on HELP button on the right top  - there is short manual for google checkout extension
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: mreamant on February 27, 2013, 12:12:36 PM
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.
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: mreamant on February 27, 2013, 01:03:00 PM
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.
 
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: Basara on February 27, 2013, 07:22:43 PM
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.
-------------------------------------------------------------------

 ;)
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: abolabo on February 28, 2013, 04:08:08 AM
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.
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: abolabo on March 01, 2013, 11:02:00 AM
just "save as" and replace file
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: mreamant on March 01, 2013, 11:15:59 AM
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. 
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: mreamant on March 01, 2013, 11:17:30 AM
Oh and when the website goes into production with google checkout, do I need to change this file back or leave as is?
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: mreamant on March 01, 2013, 11:26:49 AM
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.
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: abolabo on March 01, 2013, 09:17:05 PM
google checkout do not  AUTOMATICALLY return. i don't know why. Probably you have to ask google checkout support about it.
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: mreamant on March 02, 2013, 03:08:39 PM
Hmmm OK but when I return it still doesn't allow download of PDF...how about PayPal does that automatically return
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: abolabo on March 02, 2013, 10:19:50 PM
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".
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: mreamant on March 03, 2013, 01:57:40 PM
Ok, I figured it out in Google Sandbox, you have to view the orders yourself and set the status when using an UNSIGNED cart (not sure about signed as I get error when trying that).  In any case, I'm able to view the download (even zero cost ones) after purchasing now in google sandbox. 
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: mreamant on March 03, 2013, 02:12:34 PM
What should I put in paypal settings for the API callback link to go back to my website after purchase complete for pdf download?
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: abolabo on March 03, 2013, 09:01:18 PM
What should I put in paypal settings for the API callback link to go back to my website after purchase complete for pdf download?

what paypal extension do you mean, standart of pro ?
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: mreamant on March 08, 2013, 01:30:20 PM
standard.
Title: Re: abantecart and googlewallet return URL set up for google checkout integration
Post by: abolabo on March 09, 2013, 10:42:28 PM
did you update paypal standart by new from 1.1.5 ?
i mean that commit https://github.com/abantecart/abantecart-src/commit/389f28d6e410f0be054319874ec39046c49ce37b
if not - download zip https://github.com/abantecart/abantecart-src/archive/389f28d6e410f0be054319874ec39046c49ce37b.zip
unpack and replace all filies of default_pp_standart..
please check and let me know