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

x
?
Solved

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

Posted on 2012-03-19
2
Medium Priority
?
397 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
[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 42

Accepted Solution

by:
sedgwick 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…
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…

670 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