Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
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
Medium Priority
?
304 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

721 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