List Info

Thread: Simpal Goole checkout integration - Issues




Simpal Goole checkout integration - Issues
country flaguser name
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 : Hasanthaprogramus.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-integrationgooglegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribegooglegroups.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
country flaguser name
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-integrationgooglegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribegooglegroups.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
country flaguser name
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 xmlnssi=&q
uot;http://www.w3.org/2001/
XMLSchema-instance" xmlnssd=&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
xmlnssi=&q
uot;http:
//www.w3.org/2001/XMLSchema-instance"
xmlnssd=&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 : Hasanthaprogramus.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-integrationgooglegroups.com
To unsubscribe from this group, send email to
google-checkout-api-integration-unsubscribegooglegroups.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
user name
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.Attidiyagmail.com">Hasantha.Attidiyagmail.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 &nbsp;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.
&nbsp;   ;Note: the currency I passed to the callback function is "GBP&quot; and
what it returned
&nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  was "USD&quot; !

27/07/2007 05:19:14 - Response XML: <?xml version=&quot;1.0&quot;
encoding="utf-8"?>;
<merchant-calculation-results xmlnssi=" http://www.w3.org/2001/
XMLSchema-instance" xmlnssd="http://www.w3.org/2001/XMLSchema"
xmlns=" http://checkout.google.com/schema/2";>
 ; <results>
 &nbsp; &nbsp;<result address-id="259013610952008">
  ; &nbsp; &nbsp;<total-tax currency=&quot;USD&quot;>17.50</total-tax>
&nbsp; &nbsp;   ;<merchant-code-results />
&nbsp; &nbsp; </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
&quot;<!--&quot;.

In XML We Received: section&nbsp; following format was there.

&nbsp; &nbsp;   ; &nbsp;<?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?>&lt;merchant-calculation-results
xmlnssi=" http://www.w3.org/2001/XMLSchema-instance"
xmlnssd="http://www.w3.org/2001/XMLSchema" xmlns=&quot;http://
checkout.google.com/schema/2&quot;>&nbsp; &lt;results&gt; &nbsp; &nbsp;<result address-
id="259013610952008">  ; &nbsp; &nbsp;<total-tax currency=&quot;USD&quot;>17.50</total-
tax>&nbsp; &nbsp;   ;<merchant-code-results /> ; &nbsp; <;/result>; &nbsp;</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 <!--&nbsp; and your incorrect html code appended is <! instead of <!--
&nbsp;

calculation-results><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN&quot; " http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd"><html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;
><;head>&lt;title>  ;Untitled Page</title><;/head>&lt;body>  ; &nbsp;<form
name=&quot;form1&quot; method=&quot;post&quot; action=&quot;wfrmCallback.aspx&quot;
id=&quot;form1&quot;><input type=";hidden&quot; name=";__VIEWSTATE" id="__VIEWSTATE&quot;
value="/wEPDwUJNzgzNDMwNTMzZGQLGacRVjCTZNMqxodBroy//dfTvg==" />
&lt;div>&nbsp; &nbsp;  </div&gt; &nbsp; </form&gt;</body></html>


3. &nbsp; &nbsp; &nbsp;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&nbsp; API given me a error message something
saying,

&nbsp; &nbsp;  If you set MerchantCalculatedTax=true, you must add at least one
tax rule.";

 &nbsp; &nbsp; 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 &nbsp;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 : Hasanthaprogramus.co.uk"> Hasanthaprogramus.co.uk


On Jul 20, 6:31 pm, "joseph.feser&quot; < joseph.fe...gmail.com">joseph.fe...gmail.com> wrote:
>; Hasantha,
>
> What does the IsGood property return true or false?
&gt;
> If it is false, What does the ErrorMessage property return?
&gt;
> 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
>
&gt; On Jul 19, 11:48 pm, Hasantha < Hasantha.Attid...gmail.com">Hasantha.Attid...gmail.com> wrote:
&gt;
>
&gt;
> > 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"&nbsp; returns a blank value.
>;
> > As result of that, my program does not open up the google checkout
&gt; > 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?
&gt;
> > CheckoutShoppingCartRequest Req = GCheckoutButton1.CreateRequest();
> > Req.AddItem("Snickers", "Packed with peanuts.&quot;, 0.75m, 2);
> > GCheckoutResponse Resp = Req.Send();
> > Response.Redirect(Resp.RedirectUrl, true);
>;
> > Awaiting a respond,
&gt;
> > Kind Regards,
&gt;
> >Hasantha Attidiya
> > Technical Consultant
> > Programus Lanka Ltd
> > Tel: (+0094) 2300047
&gt; > 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&quot; group.
To post to this group, send email to google-checkout-api-integrationgooglegroups.com
To unsubscribe from this group, send email to google-checkout-api-integration-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/google-checkout-api-integration?hl=en
-~----------~----~----~----~------~----~------~--~---

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )