Solved

How to implement merchantcalculationurl in google checkout in my asp.net application?

Posted on 2012-03-19
2
372 Views
Last Modified: 2012-08-14
I send the shopping cart request to Googr le checkout sing the following code, in the code behind of the Google checkout button. What is the next step after this? HOw do I read the response for this request. I also need to get the shipping information. HOw do I redirect. Please help. thanks

Dim request As CheckoutShoppingCartRequest = New CheckoutShoppingCartRequest("merchantid", "key", EnvironmentType.Sandbox, "USD", 120)
        request.AddItem("ITem 1", "desc 1", 2.0, 1)
        request.AddStateTaxRule("CT", 0.06, True)
        request.AddStateTaxRule("MD", 0.05, False)
        Dim cart As Byte() = request.GetXml()
        cart = request.GetXml()

        Dim res As GCheckoutResponse = request.Send()
        Response.Redirect(res.RedirectUrl, True)
0
Comment
Question by:TrialUser
2 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 37741183
follow this tutorial:
http://code.google.com/apis/checkout/samples/Google_Checkout_Sample_Code_NET.html

it describes exactly what to do and how.
0
 

Author Comment

by:TrialUser
ID: 37744741
The document does not explain the Merchantcalculations api and notification  API. I want to know how to write these pages. Thanks

This section is from the document. I want toknow how to implement these.
Merchant Calculations API -

Create an .aspx page that will handle merchant-calculation-callback requests from Google Checkout. This page should parse merchant-calculation-callback requests and then call the methods that you use to calculate taxes, shipping charges, and discounts for coupons and gift certificates.

The classes and methods in the MerchantCalculations directory of the sample code distribution may help you to develop the .aspx page. Please check this document in coming weeks for more detailed instructions about how to call and use these methods.

Use the URL for your .aspx page as the value of the <merchant-calculations-url> element in your Google Checkout API requests. Google Checkout will then send merchant-calculation-callback requests to your .aspx page.

Notification API -

Create an .aspx page that will handle notifications, such as order state change notifications, and then send the information in those notifications to the appropriate internal systems.

Note: The .NET sample code distribution does not include classes or methods to process notifications or to send notification acknowledgments.

Enter the URL for your .aspx page in the API callback URL field in your Google Checkout settings. To locate this field, log in to your checkout account and click the Settings tab. Then click the Integration link in the menu on the left side of the page.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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.…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
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…

708 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

18 Experts available now in Live!

Get 1:1 Help Now