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
301 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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

679 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