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
303 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 37730254
0
 

Author Comment

by:TrialUser
ID: 37752587
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

627 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