Solved

If I integrate the google checkout  into my asp.net application, how can I access the shippin g and billing information entered by the user in google checkout

Posted on 2012-03-15
2
297 Views
Last Modified: 2012-04-11
I am trying to integrate google checkout into my ecommerce website. In my ecommerce website, I maintain a record of the shipping and billing address. If the user choosesgoogle checkout, is this information available to the merchant through some Google API? My application is ASP.net / vb.net application

Thanks
0
Comment
Question by:TrialUser
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
Comment Utility
0
 

Author Comment

by:TrialUser
Comment Utility
I have created a sandbox account and I send my shopping cart to google check out.
Next step I need to check if the authorization was valid and create a transaction in my db and process the order.

How do I check the response from Google after sending the shoppng cart. Should I create a webservice for this or is this done in a webpage inside my application. please help.
this is the code I have so far:
 Protected Sub GCheckoutButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles GCheckoutButton1.Click

        Dim dtShoppingCart As DataTable
        Dim strUserName As String = Web.HttpContext.Current.User.Identity.Name
        If strUserName = String.Empty Then
            strUserName = request.AnonymousID
            dtShoppingCart = csShoppingCartBO.GetCart(strUserName, False)
        Else
            dtShoppingCart = csShoppingCartBO.GetCart(strUserName, True)
        End If

        Dim reqShoppingCart As CheckoutShoppingCartRequest = New CheckoutShoppingCartRequest("merchantid", "key", EnvironmentType.Sandbox, "USD", 120)
        If dtShoppingCart.Rows.Count >= 1 Then
            For intItems As Integer = 0 To dtShoppingCart.Rows.Count - 1
                reqShoppingCart.AddItem(dtShoppingCart.Rows(intItems)("SKU"), dtShoppingCart.Rows(intItems)("ShortDescription"), dtShoppingCart.Rows(intItems)("Quantity"), 1)
            Next
        End If

        Dim cart As Byte() = reqShoppingCart.GetXml()
        cart = reqShoppingCart.GetXml()

        Dim res As GCheckoutResponse = reqShoppingCart.Send()
        Response.Redirect(res.RedirectUrl, True)
    End Sub
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now