Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2012-03-19
2
Medium Priority
?
404 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:
Meir Rivkin earned 2000 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

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

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.
Integration Management Part 2
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

926 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