Introduction
The project's documentation currently resides at http://code.google.com/apis/checkout/samples/Google_Checkout_Sample_Code_NET.html
Feel free to add tips and tricks learned when using the code on this wiki.
Version 1.0.2 released
I just released version 1.0.2. It is the same as version 1.0.1, except that it points to the new Sandbox URL. The old Sandbox URL will stop working on 1/17/2007. So update if you want to use Sandbox!
Version 1.1 released (Feb 3, 2007)
We just released version 1.1. Highlights:
- Examples of how to use the library.
- Merchant-calculated tax, shipping and coupons.
- Notification sender (to test your notification handler).
- Post cart.
- Process notifications asynchronously.
- Process notifications synchronously.
- Support for features exposed by the recently published XSD.
Version 1.2 released (Apr 10, 2007)
A ton of really cool features have made it into this version of the code.
- You can now use config sections in the web.config file.
- International Tax and Shipping - These modifications let you offer shipping methods and charge tax for international addresses.
- Restricting Shipping Options for Post Office (P.O.) Box Addresses - This update allows you to prevent a shipping option from being offered if the shipping address is a P.O. box in the United States.
- Address Filters to Limit Shipping Methods - This update enables you to specify a geographic area where a particular merchant-calculated shipping method is available or unavailable.
- Selecting a Rounding Policy for Tax Calculations - This update allows you to select the rounding policy that Google Checkout will use to calculate taxes and order totals. This change also enables you to choose whether Google will apply rounding rules to each item in an order before the order total is calculated or if Google will calculate the order total before applying rounding rules.
- The only feature that is not supported in the code is the PIN attribute on merchant-code-string (relevant section in the Dev Guide). Once the XSD provides support for this feature, it will be added to the code.
Version 1.3 released (November 23, 2007)
The Schema and release notes are supported up to November 15, 2007.
- Add util method to extract shipping method name from NewOrderNotification has been closed.
- GCheckout.Util.GCheckoutConfigurationHelper can work only in Web Application has been closed
- Order of method calls significant for merchant-calculated shipping has been closed
- Change the way Alt Tax Rate Tables are created and passed to Shopping Cart Items has been closed
- Create public ShoppingCartItem class for the AddItem method has been closed
- Implement new URL for XML posts has been closed
- Proxy Support
- VB.Net examples now exist.
- The coverage for our unit tests has increased from 31% to over 70%. See Issue 24
- Other bugs or enhancements have also been added to this release.
Version 1.3.2 released (May 14, 2008)
New
- Added NDepend Reports for Cyclomatic complexity Analysis.
- The ability to obtain GiftCertificateAdjustment from the NewOrderNotificationExtended class.
- Added Sample using the new ga.js Google Analytics javascript file.
Bug Fixes
- MerchantCalculationCallback does not work with non USD Currency. Allow the currency to be set without using the web.config file. This is consistent with the other callback classes.
- GCheckout problem sending URLEncoded Querystrings. We are using .NET 1.1 so the issue was fixed as close as possible to match the .NET 2.0 fix.
- GiftCertificateAdjustment Access from the Extended New Order Notification is fixed.
- Tax rates entered in UI aren't applied. This was an oversite on my side. We now check to make sure at least one Tax table is in use before building out the node. If the node exists and it is empty, it will override any values entered into the Admin UI.
- Fixed the ShoppingCartItem class to allow you to obtain the TaxTableSelector property from a NewOrderNotificationExtended class. The property was not available in the past.
Version 2.5.0.5 released (Apr 21, 2011)
New
- Support for v2.5 Callback API as described here.
- Added new example "api25notification" showing how to process a v2.5 order notification callback. Please see the Examples or Source downloads on the tab here
Bug Fixes
- itemshippinginformationlist and trackingdatalist were being set even if they were not used, causing a failure when posted.
- Added the ability to create a notification-history-request with a serial-number instead of an array or order numbers.
- Fixed bug in default-tax-table and alternate-tax-table where rateSpecified was not being set, causing the rate to not be serialized.
your payment method is wrong choose another payment method what is this help me out........
could you provide an testing page that has the google checkout implmented as an asp.net apllication that will help new developer that begins with asp.net as in html we just have to paste in it
Does anyone have sample C# .NET code for the Google Subscription functionality in 1.3.4?
Is there source code for GCheckoutV1.3.4.zip available? I cannot include GCheckout.dll as is into my project, because the DLL is not signed. I guess I'll have to wait until next GCheckout version will be released that includes source code...
Once the GCheckout button has been clicked and the user transferred to the Google site to pay, is there any way to receive some sort of a call-back so that additional steps can be performed? For example, i don't want to send a confirmation email until payment is made. I assume that using this control it is not possible.
Also looking for sample or documentation for subscription implementation 1.3.4
//after playing around with the lib for about an hour and trying different combination I was able to get it subscription to work
//modify the sub in the example page to the following and it should work
Dim gg As CheckoutShoppingCartRequest? = GCheckoutButton1.CreateRequest?()
Dim pment As New GCheckout.Checkout.SubscriptionPayment?()
pment.MaximumCharge? = 120 pment.Times=12 Dim subscript As New GCheckout.Checkout.Subscription()
subscript.Period = DatePeriod?.MONTHLY
subscript.Type = SubscriptionType?.merchant
//no idea why doesn't work when I create recuritem as ShoppingCartItem?
Dim recuritem As New GCheckout.Checkout.ShoppingCartSubscriptionItem?()
Dim recuritem2 As New GCheckout.Checkout.ShoppingCartSubscriptionItem?()
recuritem.Price = 0
recuritem.Quantity = 1
recuritem.Name = "item aaaaa"
recuritem.Description = "aaaaaa"
recuritem2.Price = 2
recuritem2.Quantity = 1
recuritem2.Name = "item bbbb"
recuritem2.Description = "bbbbb"
subscript.RecurrentItem? = recuritem2
recuritem.Subscription = subscript
subscript.AddSubscriptionPayment?(pment)
gg.AddItem?(recuritem)
Dim resp As GCheckoutResponse = gg.Send()
Response.Redirect(resp.RedirectUrl?, True)
Hello sir, i have used notofication as html and asp.net but how to get this varible values in notification page. please help me.
This may help some of you set up your subscriptions via ASP.Net Visual Basic.
This uses a setup more similar to the documentation for the Google Checkout API
FYI:
This requires you to add the .dll as a resource
I tried using really descriptive variable names...you may change these...duh.
The name of my page is signup.aspx, if this is different for you then your Partial Class name will be different...duh x2
Code for signup.aspx.vb:
Imports GCheckout.Checkout Imports GCheckout.Util Partial Class signup Inherits System.Web.UI.Page Public Sub PostCartToGoogle(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Dim Req As CheckoutShoppingCartRequest = GCheckoutButton1.CreateRequest?() Dim gSubscription As New Subscription Dim maxCharge As New SubscriptionPayment Dim urlDigitalItem As New DigitalItem(New _ Uri("http://www.url.com/login.aspx"), _ "Congratulations, your account has been created!") Dim urlDigitalItemSubscription As New DigitalItem(New _ Uri("http://www.url.com/login.aspx"), _ "You may now continue to login to your account.") Dim gRecurrentItem As New ShoppingCartSubscriptionItem() maxCharge.MaximumCharge = 29.99 gRecurrentItem.Name = "Entry Level Plan" gRecurrentItem.Description = "Allows for basic stuff. Monthly Subscription:" gRecurrentItem.Quantity = 1 gRecurrentItem.Price = 29.99 gRecurrentItem.DigitalContent = urlDigitalItemSubscription gRecurrentItem.DigitalContent.Disposition = DisplayDisposition.Pessimistic urlDigitalItem.Disposition = DisplayDisposition.Pessimistic gSubscription.Type = SubscriptionType.google gSubscription.Period = GCheckout.AutoGen.DatePeriod.MONTHLY gSubscription.AddSubscriptionPayment(maxCharge) gSubscription.RecurrentItem = gRecurrentItem Req.AddItem("Entry Level Plan", "Allows for basic stuff.", 1, gSubscription) Req.AddItem("Entry Level Plan", "First Month:", 29.99, 1, urlDigitalItem) ' May use this if you want Google to track something with your order Req.MerchantPrivateData = "UserName:Joe87" Dim Resp As GCheckoutResponse = Req.Send If Resp.IsGood Then Response.Redirect(Resp.RedirectUrl, True) Else Response.Write("Resp.ResponseXml = " + Resp.ResponseXml + "<br>") Response.Write("Resp.RedirectUrl = " + Resp.RedirectUrl + "<br>") Response.Write("Resp.IsGood = " + Resp.IsGood + "<br>") Response.Write("Resp.ErrorMessage = " + Resp.ErrorMessage + "<br>") End If End Sub End Classmatt_mcl...@peervue.com There are samples in the archives for v1.3 called examples http://code.google.com/p/google-checkout-dotnet-sample-code/downloads/detail?name=Source-v1.3.2.zip&can=1&q=#makechanges
There is no need to use ShoppingCartSubscriptionItem?. I can't find anything in the code that even uses it so I am not sure why it was required to get your code to work.
I will add these to the samples.
Both of these examples have been added to the examples
They are located in the post_cart folder in a file called SubscriptionExamples.
You may also find this in a c# and vb.net example on it's own wiki page SubscriptionExamples
I am new in asp.net. Dont know much about payment gateway processing. Please anyone provide what are the basic steps to process the payment with diagram.