|
List Info
Thread: Simpal Goole checkout integration - Issues
|
|
| Simpal Goole checkout integration -
Issues |
  United States |
2007-07-19 22:48:15 |
Hi All,
I have mange to integrate the GCheckout.dll with my
application and
added the google checkout button as well.
I was using following line of codes to invoke the google
checkout. But
in the final line "Resp.RedirectUrl" returns a
blank value.
As result of that, my program does not open up the google
checkout
screen. Could you please help me out to sort-out this
matter! Are
there any other properties to be set in addition to the
following
values?
CheckoutShoppingCartRequest Req =
GCheckoutButton1.CreateRequest();
Req.AddItem("Snickers", "Packed with
peanuts.", 0.75m, 2);
GCheckoutResponse Resp = Req.Send();
Response.Redirect(Resp.RedirectUrl, true);
Awaiting a respond,
Kind Regards,
Hasantha Attidiya
Technical Consultant
Programus Lanka Ltd
Tel: (+0094) 2300047
Website: www.programus.co.uk
Email : Hasantha programus.co.uk
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "API Integration Basics" group.
To post to this group, send email to
google-checkout-api-integration googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checko
ut-api-integration?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Simpal Goole checkout integration -
Issues |
  United States |
2007-07-20 07:31:13 |
Hasantha,
What does the IsGood property return true or false?
If it is false, What does the ErrorMessage property return?
Also look at the ResponseXml and see what that is
returning.
If you still have problems, please post the property values
to the
group and we can help resolve the issue.
Thanks
Joe
On Jul 19, 11:48 pm, Hasantha <Hasantha.Attid... gmail.com> wrote:
> Hi All,
> I have mange to integrate the GCheckout.dll with my
application and
> added the google checkout button as well.
> I was using following line of codes to invoke the
google checkout. But
> in the final line "Resp.RedirectUrl" returns
a blank value.
>
> As result of that, my program does not open up the
google checkout
> screen. Could you please help me out to sort-out this
matter! Are
> there any other properties to be set in addition to the
following
> values?
>
> CheckoutShoppingCartRequest Req =
GCheckoutButton1.CreateRequest();
> Req.AddItem("Snickers", "Packed with
peanuts.", 0.75m, 2);
> GCheckoutResponse Resp = Req.Send();
> Response.Redirect(Resp.RedirectUrl, true);
>
> Awaiting a respond,
>
> Kind Regards,
>
> Hasantha Attidiya
> Technical Consultant
> Programus Lanka Ltd
> Tel: (+0094) 2300047
> Website:www.programus.co.uk
> Email : Hasan... programus.co.uk
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "API Integration Basics" group.
To post to this group, send email to
google-checkout-api-integration googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checko
ut-api-integration?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Simpal Goole checkout integration -
Issues + Issue in tax calc |
  United States |
2007-07-27 01:39:30 |
Hi Joe,
Thanks for the respond. I was able to resolve that problem.
Actually,
I was using the wrong merchant id earlier.
By the way, I have a little bit complicated problem now. If
you could
help me out would be highly appreciated.
I was struggling in last whole week to resolve without any
luck.
Therefore I just though of draw your attention to this issue
as I need
to finalize the integration by another two days time.
Issue:
I have already integrated my test site with google sandbox
testing
site. I had to customize tax calculation as our product is
operating
in UK. Therefore, I used
MerchantCalculatedTax /URL options to specify the customized
tax
calculation.
I have customized the GetTaxResults in the overridden
routing in my
own class which is inherited form CallbackRules class.
Apparently the
calculation seems to be working fine. But sandbox google
test
environment doesn't show the tax calculation (shows zero
figure). When
I was investigating the issue, I found following facts.
1. In my debug.txt file , response xml was follows.
Note: the currency I passed to the callback function is
"GBP" and
what it returned
was "USD" !
27/07/2007 05:19:14 - Response XML: <?xml
version="1.0"
encoding="utf-8"?>
<merchant-calculation-results xmlns si=&q
uot;http://www.w3.org/2001/
XMLSchema-instance" xmlns sd=&q
uot;http://www.w3.
org/2001/XMLSchema"
xmlns="http://
checkout.google.com/schema/2">
<results>
<result address-id="259013610952008">
<total-tax
currency="USD">17.50</total-tax>
<merchant-code-results />
</result>
</results>
</merchant-calculation-results>
2. There was a error logged in the sandbox => setting
=> integration
log.
Error parsing XML; message from parser is: Comment must
start with
"<!--".
In XML We Received: section following format was there.
<?xml version="1.0"
encoding="utf-8"?><merchant-calculation-resu
lts
xmlns si=&q
uot;http:
//www.w3.org/2001/XMLSchema-instance"
xmlns sd=&q
uot;http://www.w3.
org/2001/XMLSchema" xmlns="http://
checkout.google.com/schema/2"> <results>
<result address-
id="259013610952008"> <total-tax
currency="USD">17.50</total-
tax> <merchant-code-results />
</result> </results></merchant-
calculation-results><!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3
.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd"><html xmlns="http://www.w3.org/
1999/xhtml"
><head><title> Untitled
Page</title></head><body> <form
name="form1" method="post"
action="wfrmCallback.aspx"
id="form1"><input type="hidden"
name="__VIEWSTATE" id="__VIEWSTATE"
value="/wEPDwUJNzgzNDMwNTMzZGQLGacRVjCTZNMqxodBroy//dfT
vg==" />
<div> </div>
</form></body></html>
3. In the very first day, when I was using the
"MerchantCalculatedTax
= true" option, I didn't set any of the tax rule to
the request
object. Then the GCheckout API given me a error message
something
saying,
If you set MerchantCalculatedTax=true, you must add at
least one
tax rule."
Is this a mandatory requirement?
Could you please tell me what would have gone wrong and
what am I
suppose to do to get rig of this issue ?
Kind Regards,
Hasantha Attidiya
MSc(Com), Bsc(Hon), MCSD,MCDBA
Technical Consultant
Programus Lanka Ltd
37/1, WAD Ramanayaka Mw,
Colombo02, Srl Lanka.
Tel: (+0094) 2300047
Website: www.programus.co.uk
Email : Hasantha programus.co.uk
On Jul 20, 6:31 pm, "joseph.feser"
<joseph.fe... gmail.com> wrote:
> Hasantha,
>
> What does the IsGood property return true or false?
>
> If it is false, What does the ErrorMessage property
return?
>
> Also look at the ResponseXml and see what that is
returning.
>
> If you still have problems, please post the property
values to the
> group and we can help resolve the issue.
>
> Thanks
>
> Joe
>
> On Jul 19, 11:48 pm, Hasantha <Hasantha.Attid... gmail.com> wrote:
>
>
>
> > Hi All,
> > I have mange to integrate the GCheckout.dll with
my application and
> > added the google checkout button as well.
> > I was using following line of codes to invoke the
google checkout. But
> > in the final line "Resp.RedirectUrl"
returns a blank value.
>
> > As result of that, my program does not open up the
google checkout
> > screen. Could you please help me out to sort-out
this matter! Are
> > there any other properties to be set in addition
to the following
> > values?
>
> > CheckoutShoppingCartRequest Req =
GCheckoutButton1.CreateRequest();
> > Req.AddItem("Snickers", "Packed
with peanuts.", 0.75m, 2);
> > GCheckoutResponse Resp = Req.Send();
> > Response.Redirect(Resp.RedirectUrl, true);
>
> > Awaiting a respond,
>
> > Kind Regards,
>
> >Hasantha Attidiya
> > Technical Consultant
> > Programus Lanka Ltd
> > Tel: (+0094) 2300047
> > Website:www.programus.co.uk
> > Email : Hasan... programus.co.uk- Hide
quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "API Integration Basics" group.
To post to this group, send email to
google-checkout-api-integration googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checko
ut-api-integration?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Simpal Goole checkout integration -
Issues + Issue in tax calc |

|
2007-07-27 12:04:12 |
|
Hi
I think you have some mistake in your code since you are responding the merchant calculation result tag PLUS some html-like code. Read between lines
On 7/27/07,
Hasantha < Hasantha.Attidiya gmail.com">Hasantha.Attidiya gmail.com> wrote:
Hi Joe, Thanks for the respond. I was able to resolve that problem. Actually, I was using the wrong merchant id earlier.
By the way, I have a little bit complicated problem now. If you could help me out would be highly appreciated.
I was struggling in last whole week to resolve without any luck. Therefore I just though of draw your attention to this issue as I need to finalize the integration by another two days time.
Issue:
I have already integrated my test site with google sandbox testing site. I had to customize tax calculation as our product is operating in UK. Therefore, I used MerchantCalculatedTax /URL options to specify the customized tax
calculation.
I have customized the GetTaxResults in the overridden routing in my own class which is inherited form CallbackRules class. Apparently the calculation seems to be working fine. But sandbox google test
environment doesn't show the tax calculation (shows zero figure). When I was investigating the issue, I found following facts.
1. In my debug.txt file , response xml was follows. Note: the currency I passed to the callback function is "GBP" and
what it returned was "USD" !
27/07/2007 05:19:14 - Response XML: <?xml version="1.0" encoding="utf-8"?> <merchant-calculation-results xmlns si="
http://www.w3.org/2001/ XMLSchema-instance" xmlns sd="http://www.w3.org/2001/XMLSchema" xmlns="
http://checkout.google.com/schema/2"> <results> <result address-id="259013610952008"> <total-tax currency="USD">17.50</total-tax> <merchant-code-results />
</result> </results> </merchant-calculation-results>
2. There was a error logged in the sandbox => setting => integration log.
Error parsing XML; message from parser is: Comment must start with
"<!--".
In XML We Received: section following format was there.
<?xml version="1.0" encoding="utf-8"?><merchant-calculation-results xmlns si="
http://www.w3.org/2001/XMLSchema-instance" xmlns sd="http://www.w3.org/2001/XMLSchema" xmlns="http://
checkout.google.com/schema/2"> <results> <result address- id="259013610952008"> <total-tax currency="USD">17.50</total- tax> <merchant-code-results /> </result> </results></merchant-
See here, after closing the merchant calculations results tag you open some kind (cause its not well formed) of xml comment which is incorrect since your message should finish in the </merchant-calculations-results> tag. Check the code that generates the response.
Thats why the integration console says that comments should start with <!-- and your incorrect html code appended is <! instead of <!--
calculation-results><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head><title> Untitled Page</title></head><body> <form
name="form1" method="post" action="wfrmCallback.aspx" id="form1"><input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNzgzNDMwNTMzZGQLGacRVjCTZNMqxodBroy//dfTvg==" />
<div> </div> </form></body></html>
3. In the very first day, when I was using the "MerchantCalculatedTax = true" option, I didn't set any of the tax rule to the request
object. Then the GCheckout API given me a error message something saying,
If you set MerchantCalculatedTax=true, you must add at least one tax rule."
Is this a mandatory requirement?
Yes basically because if you dont use tax rules then you dont need to set the merchant calculated tax to true, instead set it to false.
Could you please tell me what would have gone wrong and what am I suppose to do to get rig of this issue ?
Kind Regards,
Hasantha Attidiya MSc(Com), Bsc(Hon), MCSD,MCDBA Technical Consultant
Programus Lanka Ltd 37/1, WAD Ramanayaka Mw, Colombo02, Srl Lanka. Tel: (+0094) 2300047 Website: www.programus.co.uk Email : Hasantha programus.co.uk">
Hasantha programus.co.uk
On Jul 20, 6:31 pm, "joseph.feser" < joseph.fe... gmail.com">joseph.fe... gmail.com> wrote: > Hasantha, > > What does the IsGood property return true or false?
> > If it is false, What does the ErrorMessage property return? > > Also look at the ResponseXml and see what that is returning. > > If you still have problems, please post the property values to the
> group and we can help resolve the issue. > > Thanks > > Joe > > On Jul 19, 11:48 pm, Hasantha < Hasantha.Attid... gmail.com">Hasantha.Attid... gmail.com> wrote:
> > > > > Hi All, > > I have mange to integrate the GCheckout.dll with my application and > > added the google checkout button as well. > > I was using following line of codes to invoke the google checkout. But
> > in the final line "Resp.RedirectUrl" returns a blank value. > > > As result of that, my program does not open up the google checkout > > screen. Could you please help me out to sort-out this matter! Are
> > there any other properties to be set in addition to the following > > values? > > > CheckoutShoppingCartRequest Req = GCheckoutButton1.CreateRequest(); > > Req.AddItem("Snickers", "Packed with peanuts.",
0.75m, 2); > > GCheckoutResponse Resp = Req.Send(); > > Response.Redirect(Resp.RedirectUrl, true); > > > Awaiting a respond, > > > Kind Regards, > > >Hasantha Attidiya
> > Technical Consultant > > Programus Lanka Ltd > > Tel: (+0094) 2300047 > > Website:www.programus.co.uk > > Email : Hasan... programus.co.uk
- Hide quoted text - > > - Show quoted text -
If i have an apple and you have an apple and we switch then we both have an apple. But if i have an idea and you have an idea and we switch then we both have two ideas.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "API Integration Basics" group. To post to this group, send email to google-checkout-api-integration googlegroups.com To unsubscribe from this group, send email to google-checkout-api-integration-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/google-checkout-api-integration?hl=en -~----------~----~----~----~------~----~------~--~---
|
[1-4]
|
|