Hi everyone,
Thanks for reading my question i am using google checkout dll for checkout purpose. And my code is as follow..
Dim Req As CheckoutShoppin gCartRequest = GCheckoutButton 1.CreateRequest ()
For i As Int16 = 0 To grdMainItem.Row s.Count - 1
Dim CItem As New ShoppingCartIte m
Dim pname As String = CType(grdMainIt em.Rows(i).Find Control("lblPro ductName"), Label).Text
Dim price As String = CType(grdMainIt em.Rows(i).Find Control("lblPri ce"), Label).Text
Dim qty As String = CType(grdMainIt em.Rows(i).Find Control("drpQty "), DropDownList).S electedValue
CItem.Name = pname
CItem.Descripti on = ""
CItem.Price = Val(price)
CItem.Quantity = Val(qty)
Req.AddItem(CIt em)
Next
Req.EditCartUrl = "http://domain/ViewCart.aspx"
Req.ContinueSho ppingUrl = "http://domain/thankyou.aspx"
Dim Resp As GCheckoutRespon se = Req.Send()
Response.Redire ct(Resp.Redirec tUrl, True)
I want to redirect automatic when payment is made and i want to save transaction data in my db but unfortunately i can't able to redirect automatically. User has to manually click on the button to redirect.
Pls help ASAP
Thanks in Advance
Monish
Thanks for reading my question i am using google checkout dll for checkout purpose. And my code is as follow..
Dim Req As CheckoutShoppin gCartRequest = GCheckoutButton 1.CreateRequest ()
For i As Int16 = 0 To grdMainItem.Row s.Count - 1
Dim CItem As New ShoppingCartIte m
Dim pname As String = CType(grdMainIt em.Rows(i).Find Control("lblPro ductName"), Label).Text
Dim price As String = CType(grdMainIt em.Rows(i).Find Control("lblPri ce"), Label).Text
Dim qty As String = CType(grdMainIt em.Rows(i).Find Control("drpQty "), DropDownList).S electedValue
CItem.Name = pname
CItem.Descripti on = ""
CItem.Price = Val(price)
CItem.Quantity = Val(qty)
Req.AddItem(CIt em)
Next
Req.EditCartUrl = "http://domain/ViewCart.aspx"
Req.ContinueSho ppingUrl = "http://domain/thankyou.aspx"
Dim Resp As GCheckoutRespon se = Req.Send()
Response.Redire ct(Resp.Redirec tUrl, True)
I want to redirect automatic when payment is made and i want to save transaction data in my db but unfortunately i can't able to redirect automatically. User has to manually click on the button to redirect.
Pls help ASAP
Thanks in Advance
Monish