|
List Info
Thread: You must use HTTP Basic Authentication for API calls
|
|
| You must use HTTP Basic Authentication
for API calls |
  United States |
2007-04-04 16:50:58 |
This was covered in other languages, but I am not exactly
sure if it
applies to perl. Does this format of submitting data work?
<form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
[MERCHANT-ID]/merchantCheckout method=post>
<input type=hidden name=cart value="[encrypted
cart]">
<input type=hidden name=signature
value="[signature]">
the encrypted cart and signature came from
my $data = $gco->get_xml_and_signature($google_cart);
Or am I missing the whole point?
Thank you,
Arkadiy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Perl & Google Checkout API"
group.
To post to this group, send email to
google-checkout-api-perl googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-perl-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checkout-api-
perl?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: You must use HTTP Basic
Authentication for API calls |
  United States |
2007-04-04 17:01:59 |
Hi Arkadily,
Yes this should work:
my $data = $gco->get_xml_and_signature($google_cart);
After $data (a hash reference) is populated, $data->
will give
you the encrypted cart while $data-> will give
you the
signature. You can then use it in the hidden field for
'cart' and
'signature' respectively. If you have problem getting it to
work,
please let me know.
Thanks!
On Apr 4, 2:50 pm, "arkadiyp" <arka... shoplet.com> wrote:
> This was covered in other languages, but I am not
exactly sure if it
> applies to perl. Does this format of submitting data
work?
>
> <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> [MERCHANT-ID]/merchantCheckout method=post>
>
> <input type=hidden name=cart
value="[encrypted cart]">
> <input type=hidden name=signature
value="[signature]">
>
> the encrypted cart and signature came from
> my $data =
$gco->get_xml_and_signature($google_cart);
>
> Or am I missing the whole point?
>
> Thank you,
> Arkadiy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Perl & Google Checkout API"
group.
To post to this group, send email to
google-checkout-api-perl googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-perl-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checkout-api-
perl?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: You must use HTTP Basic
Authentication for API calls |
  United States |
2007-04-04 17:08:17 |
below is the exact form that I am trying to use, and it
results in
<?xml version="1.0"
encoding="UTF-8" ?>
- <error xmlns="http://chec
kout.google.com/schema/2" serial-
number="8a7f463b-a8f6-4f80-aae3-ea6d57a5a0e5">
<error-message>You must use HTTP Basic
Authentication for API calls
(username=Seller ID, password=Merchant
Key)</error-message>
</error>
thank you in advance
Arkadiy
<form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
676768651488839/merchantCheckout method=post>
<input type=hidden name=cart
value="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgi
Pz48Y2hlY2tvdXQtc2hvcHBpbmctY2FydCB4bWxucz0iaHR0cDovL2NoZWNr
b3V0Lmdvb2dsZS5jb20vc2NoZW1hLzIiPjxzaG9wcGluZy1jYXJ0PjxjYXJ0
LWV4cGlyYXRpb24+PGdvb2QtdW50aWwtZGF0ZT4yMDA4LTA0LTA0VDE4OjU5
OjM1WjwvZ29vZC11bnRpbC1kYXRlPjwvY2FydC1leHBpcmF0aW9uPjxtZXJj
aGFudC1wcml2YXRlLWRhdGE
+PG1lcmNoYW50LW5vdGU
+QW55IHByaXZhdGUgZGF0YSB5b3Ugd2FudDwvbWVyY2hhbnQtbm90ZT48L21
lcmNoYW50LXByaXZhdGUtZGF0YT48aXRlbXM
+PGl0ZW0+PGl0ZW0tbmFtZT4xMDUzNzg2PC9pdGVtLW5hbWU
+PGl0ZW0tZGVzY3JpcHRpb24+UkoxMSByb3VuZCBwbHVncyA1MHBrPC9pdGV
tLWRlc2NyaXB0aW9uPjx1bml0LXByaWNlIEdvb2dsZTo6Q2hlY2tvdXQ6Olh
NTDo6Q29uc3RhbnRzOjpJVEVNX0NVUlJFTkNZPSJVU0QiPjcuODc8L3VuaXQ
tcHJpY2U
+PHF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J0PjwvY2hlY2tvdXQtZmxvdy1zdXBwb3J0PjwvY2hlY2tvdXQtc2h
vcHBpbmctY2FydD4=">
<input type=hidden name=signature
value="1nwj0igLnOo/
M5Kd4cSXE5yZezQ=">
<input type="image" name="Google
Checkout" alt="Fast checkout through
Google"
src="http://sandbox.google.com/checkout/buttons/checkout.gif?
merchant_id=676768651488839
&w=180&h=46&style=white&variant=text&loc
=en_US"
height="46" width="180">
</form>
On Apr 4, 6:01 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
> Hi Arkadily,
> Yes this should work:
>
> my $data =
$gco->get_xml_and_signature($google_cart);
>
> After $data (a hash reference) is populated,
$data-> will give
> you the encrypted cart while $data-> will
give you the
> signature. You can then use it in the hidden field for
'cart' and
> 'signature' respectively. If you have problem getting
it to work,
> please let me know.
>
> Thanks!
>
> On Apr 4, 2:50 pm, "arkadiyp" <arka... shoplet.com> wrote:
>
>
>
> > This was covered in other languages, but I am not
exactly sure if it
> > applies to perl. Does this format of submitting
data work?
>
> > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > [MERCHANT-ID]/merchantCheckout method=post>
>
> > <input type=hidden name=cart
value="[encrypted cart]">
> > <input type=hidden name=signature
value="[signature]">
>
> > the encrypted cart and signature came from
> > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > Or am I missing the whole point?
>
> > Thank you,
> > Arkadiy- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Perl & Google Checkout API"
group.
To post to this group, send email to
google-checkout-api-perl googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-perl-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checkout-api-
perl?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: You must use HTTP Basic
Authentication for API calls |
  United States |
2007-04-05 12:37:41 |
Hi Arkadiy,
Your usage of the API is correct, however, your URL in the
form action
parameter appears to be wrong. Instead of:
<form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
676768651488839/merchantCheckout method=post>
It should be:
<form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
676768651488839/checkout method=post>
Please try that and let me know if it works.
"/merchantCheckout" is
used for server to server post which your example below
isn't.
Thanks!
On Apr 4, 3:08 pm, "arkadiyp" <arka... shoplet.com> wrote:
> below is the exact form that I am trying to use, and it
results in
> <?xml version="1.0"
encoding="UTF-8" ?>
> - <error xmlns="http://chec
kout.google.com/schema/2" serial-
>
number="8a7f463b-a8f6-4f80-aae3-ea6d57a5a0e5">
> <error-message>You must use HTTP Basic
Authentication for API calls
> (username=Seller ID, password=Merchant
Key)</error-message>
> </error>
>
> thank you in advance
> Arkadiy
>
> <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> 676768651488839/merchantCheckout method=post>
>
> <input type=hidden name=cart
>
value="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgi
Pz48Y2hlY2tvdXQtc2hvcHBpbmctY2FydCB4bWxucz0iaHR0cDovL2NoZWNr
b3V0Lmdvb2dsZS5jb20vc2NoZW1hLzIiPjxzaG9wcGluZy1jYXJ0PjxjYXJ0
LWV4cGlyYXRpb24+PGdvb2QtdW50aWwtZGF0ZT4yMDA4LTA0LTA0VDE4OjU5
OjM1WjwvZ29vZC11bnRpbC1kYXRlPjwvY2FydC1leHBpcmF0aW9uPjxtZXJj
aGFudC1wcml2YXRlLWRhdGE
> +PG1lcmNoYW50LW5vdGU
>
+QW55IHByaXZhdGUgZGF0YSB5b3Ugd2FudDwvbWVyY2hhbnQtbm90ZT48L21
lcmNoYW50LXByaXZhdGUtZGF0YT48aXRlbXM
> +PGl0ZW0+PGl0ZW0tbmFtZT4xMDUzNzg2PC9pdGVtLW5hbWU
>
+PGl0ZW0tZGVzY3JpcHRpb24+UkoxMSByb3VuZCBwbHVncyA1MHBrPC9pdGV
tLWRlc2NyaXB0aW9uPjx1bml0LXByaWNlIEdvb2dsZTo6Q2hl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Ij41NTwvcHJpY2U
> +PC9mbGF0LXJhdGUtc2hpcHBpbmc
>
+PC9zaGlwcGluZy1tZXRob2RzPjwvbWVyY2hhbnQtY2hlY2tvdXQtZmxvdy1
zdXBwb3J0PjwvY2hlY2tvdXQtZmxvdy1zdXBwb3J0PjwvY2hlY2tvdXQtc2h
vcHBpbmctY2FydD4=">
> <input type=hidden name=signature
value="1nwj0igLnOo/
> M5Kd4cSXE5yZezQ=">
> <input type="image" name="Google
Checkout" alt="Fast checkout through
> Google"
> src="http://sandbox.google.com/checkout/buttons/checkout.gif?
> merchant_id=676768651488839
>
&w=180&h=46&style=white&variant=text&loc
=en_US"
> height="46" width="180">
>
> </form>
>
> On Apr 4, 6:01 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > Hi Arkadily,
> > Yes this should work:
>
> > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > After $data (a hash reference) is populated,
$data-> will give
> > you the encrypted cart while $data->
will give you the
> > signature. You can then use it in the hidden field
for 'cart' and
> > 'signature' respectively. If you have problem
getting it to work,
> > please let me know.
>
> > Thanks!
>
> > On Apr 4, 2:50 pm, "arkadiyp"
<arka... shoplet.com> wrote:
>
> > > This was covered in other languages, but I am
not exactly sure if it
> > > applies to perl. Does this format of
submitting data work?
>
> > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > [MERCHANT-ID]/merchantCheckout
method=post>
>
> > > <input type=hidden name=cart
value="[encrypted cart]">
> > > <input type=hidden name=signature
value="[signature]">
>
> > > the encrypted cart and signature came from
> > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > Or am I missing the whole point?
>
> > > Thank you,
> > > Arkadiy- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Perl & Google Checkout API"
group.
To post to this group, send email to
google-checkout-api-perl googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-perl-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checkout-api-
perl?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: You must use HTTP Basic
Authentication for API calls |
  United States |
2007-04-05 12:54:55 |
I tried changing the post url to what you have suggested,
and it gives
me HTTP 400 - Bad Request.
Thank you for your help,
Arkadiy
On Apr 5, 1:37 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
> Hi Arkadiy,
> Your usage of the API is correct, however, your URL in
the form action
> parameter appears to be wrong. Instead of:
>
> <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> 676768651488839/merchantCheckout method=post>
>
> It should be:
>
> <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> 676768651488839/checkout method=post>
>
> Please try that and let me know if it works.
"/merchantCheckout" is
> used for server to server post which your example below
isn't.
>
> Thanks!
>
> On Apr 4, 3:08 pm, "arkadiyp" <arka... shoplet.com> wrote:
>
>
>
> > below is the exact form that I am trying to use,
and it results in
> > <?xml version="1.0"
encoding="UTF-8" ?>
> > - <error xmlns="http://chec
kout.google.com/schema/2" serial-
> >
number="8a7f463b-a8f6-4f80-aae3-ea6d57a5a0e5">
> > <error-message>You must use HTTP Basic
Authentication for API calls
> > (username=Seller ID, password=Merchant
Key)</error-message>
> > </error>
>
> > thank you in advance
> > Arkadiy
>
> > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > 676768651488839/merchantCheckout method=post>
>
> > <input type=hidden name=cart
> >
value="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgi
Pz48Y2hlY2tvdXQtc2hvcHBpbmctY2FydCB4bWxucz0iaHR0cDovL2NoZWN
rb3V0Lmdvb2dsZS5jb20vc2NoZW1hLzIiPjxzaG9wcGluZy1jYXJ0PjxjYX
J0LWV4cGlyYXRpb24+PGdvb2QtdW50aWwtZGF0ZT4yMDA4LTA0LTA0VDE4O
jU5OjM1WjwvZ29vZC11bnRpbC1kYXRlPjwvY2FydC1leHBpcmF0aW9uPjxtZ
XJjaGF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ZS1zaGlwcGluZyBuYW1lPSJGRURFWCAyTkQgREFZIj48cHJ
pY2UgR29vZ2xlOjpDaGVja291dDo6WE1MOjpDb25zdGFudHM6OklURU1fQ1
VSUkVOQ1k9IlVTRCI
> >
+NDY8L3ByaWNlPjwvZmxhdC1yYXRlLXNoaXBwaW5nPjxmbGF0LXJhdGUtc2h
pcHBpbmcgbmFtZT0iRkVERVggU1RBTkRBUkQgT1ZFUk5JVEUiPjxwcmljZS
BHb29nbGU6OkNoZWNrb3V0OjpYTUw6OkNvbnN0YW50czo6SVRFTV9DVVJSR
U5DWT0iVVNEIj41NTwvcHJpY2U
> > +PC9mbGF0LXJhdGUtc2hpcHBpbmc
> >
+PC9zaGlwcGluZy1tZXRob2RzPjwvbWVyY2hhbnQtY2hlY2tvdXQtZmxvdy1
zdXBwb3J0PjwvY2hlY2tvdXQtZmxvdy1zdXBwb3J0PjwvY2hlY2tvdXQtc2
hvcHBpbmctY2FydD4=">
> > <input type=hidden name=signature
value="1nwj0igLnOo/
> > M5Kd4cSXE5yZezQ=">
> > <input type="image" name="Google
Checkout" alt="Fast checkout through
> > Google"
> > src="http://sandbox.google.com/checkout/buttons/checkout.gif?
> > merchant_id=676768651488839
> >
&w=180&h=46&style=white&variant=text&loc
=en_US"
> > height="46" width="180">
>
> > </form>
>
> > On Apr 4, 6:01 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > > Hi Arkadily,
> > > Yes this should work:
>
> > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > After $data (a hash reference) is populated,
$data-> will give
> > > you the encrypted cart while
$data-> will give you the
> > > signature. You can then use it in the hidden
field for 'cart' and
> > > 'signature' respectively. If you have problem
getting it to work,
> > > please let me know.
>
> > > Thanks!
>
> > > On Apr 4, 2:50 pm, "arkadiyp"
<arka... shoplet.com> wrote:
>
> > > > This was covered in other languages, but
I am not exactly sure if it
> > > > applies to perl. Does this format of
submitting data work?
>
> > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > [MERCHANT-ID]/merchantCheckout
method=post>
>
> > > > <input type=hidden name=cart
value="[encrypted cart]">
> > > > <input type=hidden
name=signature value="[signature]">
>
> > > > the encrypted cart and signature came
from
> > > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > > Or am I missing the whole point?
>
> > > > Thank you,
> > > > Arkadiy- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Perl & Google Checkout API"
group.
To post to this group, send email to
google-checkout-api-perl googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-perl-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checkout-api-
perl?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: You must use HTTP Basic
Authentication for API calls |
  United States |
2007-04-05 13:04:23 |
Arikadiy,
Are you able to run the examples that came with the module?
Thanks!
On Apr 5, 10:54 am, "arkadiyp" <arka... shoplet.com> wrote:
> I tried changing the post url to what you have
suggested, and it gives
> me HTTP 400 - Bad Request.
>
> Thank you for your help,
> Arkadiy
>
> On Apr 5, 1:37 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > Hi Arkadiy,
> > Your usage of the API is correct, however, your
URL in the form action
> > parameter appears to be wrong. Instead of:
>
> > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > 676768651488839/merchantCheckout method=post>
>
> > It should be:
>
> > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > 676768651488839/checkout method=post>
>
> > Please try that and let me know if it works.
"/merchantCheckout" is
> > used for server to server post which your example
below isn't.
>
> > Thanks!
>
> > On Apr 4, 3:08 pm, "arkadiyp"
<arka... shoplet.com> wrote:
>
> > > below is the exact form that I am trying to
use, and it results in
> > > <?xml version="1.0"
encoding="UTF-8" ?>
> > > - <error xmlns="http://chec
kout.google.com/schema/2" serial-
> > >
number="8a7f463b-a8f6-4f80-aae3-ea6d57a5a0e5">
> > > <error-message>You must use HTTP
Basic Authentication for API calls
> > > (username=Seller ID, password=Merchant
Key)</error-message>
> > > </error>
>
> > > thank you in advance
> > > Arkadiy
>
> > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > 676768651488839/merchantCheckout
method=post>
>
> > > <input type=hidden name=cart
> > >
value="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgi
Pz48Y2hlY2tvdXQtc2hvcHBpbmctY2FydCB4bWxucz0iaHR0cDovL2NoZWN
rb3V0Lmdvb2dsZS5jb20vc2NoZW1hLzIiPjxzaG9wcGluZy1jYXJ0PjxjYX
J0LWV4cGlyYXRpb24+PGdvb2QtdW50aWwtZGF0ZT4yMDA4LTA0LTA0VDE4O
jU5OjM1WjwvZ29vZC11bnRpbC1kYXRlPjwvY2FydC1leHBpcmF0aW9uPjxtZ
XJjaGFudC1wcml2YXRlLWRhdGE
> > > +PG1lcmNoYW50LW5vdGU
> > >
+QW55IHByaXZhdGUgZGF0YSB5b3Ugd2FudDwvbWVyY2hhbnQtbm90ZT48L21
lcmNoYW50LXByaXZhdGUtZGF0YT48aXRlbXM
> > >
+PGl0ZW0+PGl0ZW0tbmFtZT4xMDUzNzg2PC9pdGVtLW5hbWU
> > >
+PGl0ZW0tZGVzY3JpcHRpb24+UkoxMSByb3VuZCBwbHVncyA1MHBrPC9pdGV
tLWRlc2NyaXB0aW9uPjx1bml0LXByaWNlIEdvb2dsZTo6Q2hlY2tvdXQ6Ol
hNTDo6Q29uc3RhbnRzOjpJVEVNX0NVUlJFTkNZPSJVU0QiPjcuODc8L3Vua
XQtcHJpY2U
> > >
+PHF1YW50aXR5PjE8L3F1YW50aXR5PjwvaXRlbT48aXRlbT48aXRlbS1uYW1
lPkhFV0M0MTI3RDwvaXRlbS1uYW1lPjxpdGVtLWRlc2NyaXB0aW9uPkJsYW
NrIFByaW50IENhcnRyaWRnZSBmb3IgSFAgTGFzZXJKZXQgNDAwMCw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5yZezQ=">
> > > <input type="image"
name="Google Checkout" alt="Fast checkout
through
> > > Google"
> > > src="http://sandbox.google.com/checkout/buttons/checkout.gif?
> > > merchant_id=676768651488839
> > >
&w=180&h=46&style=white&variant=text&loc
=en_US"
> > > height="46"
width="180">
>
> > > </form>
>
> > > On Apr 4, 6:01 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > > > Hi Arkadily,
> > > > Yes this should work:
>
> > > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > > After $data (a hash reference) is
populated, $data-> will give
> > > > you the encrypted cart while
$data-> will give you the
> > > > signature. You can then use it in the
hidden field for 'cart' and
> > > > 'signature' respectively. If you have
problem getting it to work,
> > > > please let me know.
>
> > > > Thanks!
>
> > > > On Apr 4, 2:50 pm, "arkadiyp"
<arka... shoplet.com> wrote:
>
> > > > > This was covered in other
languages, but I am not exactly sure if it
> > > > > applies to perl. Does this format
of submitting data work?
>
> > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > [MERCHANT-ID]/merchantCheckout
method=post>
>
> > > > > <input type=hidden
name=cart value="[encrypted cart]">
> > > > > <input type=hidden
name=signature value="[signature]">
>
> > > > > the encrypted cart and signature
came from
> > > > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > > > Or am I missing the whole point?
>
> > > > > Thank you,
> > > > > Arkadiy- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text
-
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Perl & Google Checkout API"
group.
To post to this group, send email to
google-checkout-api-perl googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-perl-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checkout-api-
perl?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: You must use HTTP Basic
Authentication for API calls |
  United States |
2007-04-05 14:11:38 |
Here is what I get when I try to run
checkout/checkout_example1.pl
400: 400 Bad Request<?xml version="1.0"
encoding="UTF-8"?>
<error xmlns="http://chec
kout.google.com/schema/2" serial-
number="2010ef2d-9ab4-406e-a025-15aaf2e6ec84">
<error-message>Malformed URL component: expected
diagnose: diagnose,
but got 676768651488839</error-message>
</error>
Thank you for your help.
On Apr 5, 2:04 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
> Arikadiy,
> Are you able to run the examples that came with the
module?
>
> Thanks!
>
> On Apr 5, 10:54 am, "arkadiyp"
<arka... shoplet.com> wrote:
>
>
>
> > I tried changing the post url to what you have
suggested, and it gives
> > me HTTP 400 - Bad Request.
>
> > Thank you for your help,
> > Arkadiy
>
> > On Apr 5, 1:37 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > > Hi Arkadiy,
> > > Your usage of the API is correct, however,
your URL in the form action
> > > parameter appears to be wrong. Instead of:
>
> > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > 676768651488839/merchantCheckout
method=post>
>
> > > It should be:
>
> > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > 676768651488839/checkout method=post>
>
> > > Please try that and let me know if it works.
"/merchantCheckout" is
> > > used for server to server post which your
example below isn't.
>
> > > Thanks!
>
> > > On Apr 4, 3:08 pm, "arkadiyp"
<arka... shoplet.com> wrote:
>
> > > > below is the exact form that I am trying
to use, and it results in
> > > > <?xml version="1.0"
encoding="UTF-8" ?>
> > > > - <error xmlns="http://chec
kout.google.com/schema/2" serial-
> > > >
number="8a7f463b-a8f6-4f80-aae3-ea6d57a5a0e5">
> > > > <error-message>You must use HTTP
Basic Authentication for API calls
> > > > (username=Seller ID, password=Merchant
Key)</error-message>
> > > > </error>
>
> > > > thank you in advance
> > > > Arkadiy
>
> > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > 676768651488839/merchantCheckout
method=post>
>
> > > > <input type=hidden name=cart
> > > >
value="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgi
Pz48Y2h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
+PC9kZWZhdWx0LXRheC10YWJsZT48L3RheC10YWJsZXM+PHNoaXBwaW5nLW1
ldGhvZHM
> > > >
+PGZsYXQtcmF0ZS1zaGlwcGluZyBuYW1lPSJVUFMgR1JPVU5EIj48cHJpY2U
gR29vZ2xlOjpDaGVja291dDo6WE1MOjpDb25zdGFudHM6OklURU1fQ1VSU
kVOQ1k9IlVTRCI
> > > >
+MC4wMDwvcHJpY2U+PC9mbGF0LXJhdGUtc2hpcHBpbmc
> > > >
+PGZsYXQtcmF0ZS1zaGlwcGluZyBuYW1lPSJGRURFWCAyTkQgREFZIj48cHJ
pY2UgR29vZ2xlOjpDaGVja291dDo6WE1MOjpDb25zdGFudHM6OklURU1fQ
1VSUkVOQ1k9IlVTRCI
> > > >
+NDY8L3ByaWNlPjwvZmxhdC1yYXRlLXNoaXBwaW5nPjxmbGF0LXJhdGUtc2h
pcHBpbmcgbmFtZT0iRkVERVggU1RBTkRBUkQgT1ZFUk5JVEUiPjxwcmljZ
SBHb29nbGU6OkNoZWNrb3V0OjpYTUw6OkNvbnN0YW50czo6SVRFTV9DVVJ
SRU5DWT0iVVNEIj41NTwvcHJpY2U
> > > > +PC9mbGF0LXJhdGUtc2hpcHBpbmc
> > > >
+PC9zaGlwcGluZy1tZXRob2RzPjwvbWVyY2hhbnQtY2hlY2tvdXQtZmxvdy1
zdXBwb3J0PjwvY2hlY2tvdXQtZmxvdy1zdXBwb3J0PjwvY2hlY2tvdXQtc
2hvcHBpbmctY2FydD4=">
> > > > <input type=hidden
name=signature value="1nwj0igLnOo/
> > > > M5Kd4cSXE5yZezQ=">
> > > > <input type="image"
name="Google Checkout" alt="Fast checkout
through
> > > > Google"
> > > > src="http://sandbox.google.com/checkout/buttons/checkout.gif?
> > > > merchant_id=676768651488839
> > > >
&w=180&h=46&style=white&variant=text&loc
=en_US"
> > > > height="46"
width="180">
>
> > > > </form>
>
> > > > On Apr 4, 6:01 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > > > > Hi Arkadily,
> > > > > Yes this should work:
>
> > > > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > > > After $data (a hash reference) is
populated, $data-> will give
> > > > > you the encrypted cart while
$data-> will give you the
> > > > > signature. You can then use it in
the hidden field for 'cart' and
> > > > > 'signature' respectively. If you
have problem getting it to work,
> > > > > please let me know.
>
> > > > > Thanks!
>
> > > > > On Apr 4, 2:50 pm,
"arkadiyp" <arka... shoplet.com> wrote:
>
> > > > > > This was covered in other
languages, but I am not exactly sure if it
> > > > > > applies to perl. Does this
format of submitting data work?
>
> > > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > > [MERCHANT-ID]/merchantCheckout
method=post>
>
> > > > > > <input type=hidden
name=cart value="[encrypted cart]">
> > > > > > <input type=hidden
name=signature value="[signature]">
>
> > > > > > the encrypted cart and
signature came from
> > > > > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > > > > Or am I missing the whole
point?
>
> > > > > > Thank you,
> > > > > > Arkadiy- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted
text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Perl & Google Checkout API"
group.
To post to this group, send email to
google-checkout-api-perl googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-perl-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checkout-api-
perl?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: You must use HTTP Basic
Authentication for API calls |
  United States |
2007-04-05 14:42:25 |
Since you are having problem running the examples, I would
guess that
you aren't using the API properly. Can I ask:
1. What version of the library you are running?
2. Can you show me how exactly you are running example 1?
Please copy
and paste the exact command.
3. Can you show me what your BASE_GCO_SERVER is set to in
your
configuration?
Thanks!
On Apr 5, 12:11 pm, "arkadiyp" <arka... shoplet.com> wrote:
> Here is what I get when I try to run
checkout/checkout_example1.pl
>
> 400: 400 Bad Request<?xml version="1.0"
encoding="UTF-8"?>
> <error xmlns="http://chec
kout.google.com/schema/2" serial-
>
number="2010ef2d-9ab4-406e-a025-15aaf2e6ec84">
> <error-message>Malformed URL component:
expected diagnose: diagnose,
> but got 676768651488839</error-message>
> </error>
>
> Thank you for your help.
>
> On Apr 5, 2:04 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > Arikadiy,
> > Are you able to run the examples that came with
the module?
>
> > Thanks!
>
> > On Apr 5, 10:54 am, "arkadiyp"
<arka... shoplet.com> wrote:
>
> > > I tried changing the post url to what you
have suggested, and it gives
> > > me HTTP 400 - Bad Request.
>
> > > Thank you for your help,
> > > Arkadiy
>
> > > On Apr 5, 1:37 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > > > Hi Arkadiy,
> > > > Your usage of the API is correct,
however, your URL in the form action
> > > > parameter appears to be wrong. Instead
of:
>
> > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > 676768651488839/merchantCheckout
method=post>
>
> > > > It should be:
>
> > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > 676768651488839/checkout
method=post>
>
> > > > Please try that and let me know if it
works. "/merchantCheckout" is
> > > > used for server to server post which
your example below isn't.
>
> > > > Thanks!
>
> > > > On Apr 4, 3:08 pm, "arkadiyp"
<arka... shoplet.com> wrote:
>
> > > > > below is the exact form that I am
trying to use, and it results in
> > > > > <?xml version="1.0"
encoding="UTF-8" ?>
> > > > > - <error xmlns="http://chec
kout.google.com/schema/2" serial-
> > > > >
number="8a7f463b-a8f6-4f80-aae3-ea6d57a5a0e5">
> > > > > <error-message>You must use
HTTP Basic Authentication for API calls
> > > > > (username=Seller ID,
password=Merchant Key)</error-message>
> > > > > </error>
>
> > > > > thank you in advance
> > > > > Arkadiy
>
> > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > 676768651488839/merchantCheckout
method=post>
>
> > > > > <input type=hidden
name=cart
> > > > >
value="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E
> > > > >
+PC90YXgtYXJlYT48L2RlZmF1bHQtdGF4LXJ1bGU+PC90YXgtcnVsZXM
> > > > >
+PC9kZWZhdWx0LXRheC10YWJsZT48L3RheC10YWJsZXM+PHNoaXBwaW5nLW1
ldGhvZHM
> > > > >
+PGZsYXQtcmF0ZS1zaGlwcGluZyBuYW1lPSJVUFMgR1JPVU5EIj48cHJpY2U
gR29vZ2xlOjpDaGVja291dDo6WE1MOjpDb25zdGFudHM6OklURU1fQ1VSU
kVOQ1k9IlVTRCI
> > > > >
+MC4wMDwvcHJpY2U+PC9mbGF0LXJhdGUtc2hpcHBpbmc
> > > > >
+PGZsYXQtcmF0ZS1zaGlwcGluZyBuYW1lPSJGRURFWCAyTkQgREFZIj48cHJ
pY2UgR29vZ2xlOjpDaGVja291dDo6WE1MOjpDb25zdGFudHM6OklURU1fQ
1VSUkVOQ1k9IlVTRCI
> > > > >
+NDY8L3ByaWNlPjwvZmxhdC1yYXRlLXNoaXBwaW5nPjxmbGF0LXJhdGUtc2h
pcHBpbmcgbmFtZT0iRkVERVggU1RBTkRBUkQgT1ZFUk5JVEUiPjxwcmljZ
SBHb29nbGU6OkNoZWNrb3V0OjpYTUw6OkNvbnN0YW50czo6SVRFTV9DVVJ
SRU5DWT0iVVNEIj41NTwvcHJpY2U
> > > > > +PC9mbGF0LXJhdGUtc2hpcHBpbmc
> > > > >
+PC9zaGlwcGluZy1tZXRob2RzPjwvbWVyY2hhbnQtY2hlY2tvdXQtZmxvdy1
zdXBwb3J0PjwvY2hlY2tvdXQtZmxvdy1zdXBwb3J0PjwvY2hlY2tvdXQtc
2hvcHBpbmctY2FydD4=">
> > > > > <input type=hidden
name=signature value="1nwj0igLnOo/
> > > > > M5Kd4cSXE5yZezQ=">
> > > > > <input type="image"
name="Google Checkout" alt="Fast checkout
through
> > > > > Google"
> > > > > src="http://sandbox.google.com/checkout/buttons/checkout.gif?
> > > > > merchant_id=676768651488839
> > > > >
&w=180&h=46&style=white&variant=text&loc
=en_US"
> > > > > height="46"
width="180">
>
> > > > > </form>
>
> > > > > On Apr 4, 6:01 pm,
"GCOEng" <gcheckout.perl.... gmail.com> wrote:
>
> > > > > > Hi Arkadily,
> > > > > > Yes this should work:
>
> > > > > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > > > > After $data (a hash reference)
is populated, $data-> will give
> > > > > > you the encrypted cart while
$data-> will give you the
> > > > > > signature. You can then use it
in the hidden field for 'cart' and
> > > > > > 'signature' respectively. If
you have problem getting it to work,
> > > > > > please let me know.
>
> > > > > > Thanks!
>
> > > > > > On Apr 4, 2:50 pm,
"arkadiyp" <arka... shoplet.com> wrote:
>
> > > > > > > This was covered in other
languages, but I am not exactly sure if it
> > > > > > > applies to perl. Does
this format of submitting data work?
>
> > > > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > > >
[MERCHANT-ID]/merchantCheckout method=post>
>
> > > > > > > <input
type=hidden name=cart value="[encrypted
cart]">
> > > > > > > <input
type=hidden name=signature
value="[signature]">
>
> > > > > > > the encrypted cart and
signature came from
> > > > > > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > > > > > Or am I missing the whole
point?
>
> > > > > > > Thank you,
> > > > > > > Arkadiy- Hide quoted text
-
>
> > > > > > - Show quoted text -- Hide
quoted text -
>
> > > > - Show quoted text -- Hide quoted text
-
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Perl & Google Checkout API"
group.
To post to this group, send email to
google-checkout-api-perl googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-perl-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checkout-api-
perl?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: You must use HTTP Basic
Authentication for API calls |
  United States |
2007-04-05 14:50:01 |
1 . Library version 1.0.3
2. checkout/checkout_example2.pl from
Google-Checkout-1.0.3/examples/
3. BASE_GCO_SERVER = https://sandbox.google.com/c
heckout/cws/v2/Merchant/676768651488839/merchantCheckout
On Apr 5, 3:42 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
> Since you are having problem running the examples, I
would guess that
> you aren't using the API properly. Can I ask:
>
> 1. What version of the library you are running?
> 2. Can you show me how exactly you are running example
1? Please copy
> and paste the exact command.
> 3. Can you show me what your BASE_GCO_SERVER is set to
in your
> configuration?
>
> Thanks!
>
> On Apr 5, 12:11 pm, "arkadiyp"
<arka... shoplet.com> wrote:
>
>
>
> > Here is what I get when I try to run
checkout/checkout_example1.pl
>
> > 400: 400 Bad Request<?xml
version="1.0" encoding="UTF-8"?>
> > <error xmlns="http://chec
kout.google.com/schema/2" serial-
> >
number="2010ef2d-9ab4-406e-a025-15aaf2e6ec84">
> > <error-message>Malformed URL component:
expected diagnose: diagnose,
> > but got 676768651488839</error-message>
> > </error>
>
> > Thank you for your help.
>
> > On Apr 5, 2:04 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > > Arikadiy,
> > > Are you able to run the examples that came
with the module?
>
> > > Thanks!
>
> > > On Apr 5, 10:54 am, "arkadiyp"
<arka... shoplet.com> wrote:
>
> > > > I tried changing the post url to what
you have suggested, and it gives
> > > > me HTTP 400 - Bad Request.
>
> > > > Thank you for your help,
> > > > Arkadiy
>
> > > > On Apr 5, 1:37 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > > > > Hi Arkadiy,
> > > > > Your usage of the API is correct,
however, your URL in the form action
> > > > > parameter appears to be wrong.
Instead of:
>
> > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > 676768651488839/merchantCheckout
method=post>
>
> > > > > It should be:
>
> > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > 676768651488839/checkout
method=post>
>
> > > > > Please try that and let me know if
it works. "/merchantCheckout" is
> > > > > used for server to server post
which your example below isn't.
>
> > > > > Thanks!
>
> > > > > On Apr 4, 3:08 pm,
"arkadiyp" <arka... shoplet.com> wrote:
>
> > > > > > below is the exact form that I
am trying to use, and it results in
> > > > > > <?xml
version="1.0" encoding="UTF-8" ?>
> > > > > > - <error xmlns="http://chec
kout.google.com/schema/2" serial-
> > > > > >
number="8a7f463b-a8f6-4f80-aae3-ea6d57a5a0e5">
> > > > > > <error-message>You
must use HTTP Basic Authentication for API calls
> > > > > > (username=Seller ID,
password=Merchant Key)</error-message>
> > > > > > </error>
>
> > > > > > thank you in advance
> > > > > > Arkadiy
>
> > > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > >
676768651488839/merchantCheckout method=post>
>
> > > > > > <input type=hidden
name=cart
> > > > > >
value="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgi
Pz48Y2hlY2tvdXQtc2hvcHBpbmctY2FydCB4bWxucz0iaHR0cDovL2NoZ
WNrb3V0Lmdvb2dsZS5jb20vc2NoZW1hLzIiPjxzaG9wcGluZy1jYXJ0Pj
xjYXJ0LWV4cGlyYXRpb24+PGdvb2QtdW50aWwtZGF0ZT4yMDA4LTA0LTA
0VDE4OjU5OjM1WjwvZ29vZC11bnRpbC1kYXRlPjwvY2FydC1leHBpcmF0aW9
uPjxtZXJjaGFudC1wcml2YXRlLWRhdGE
> > > > > > +PG1lcmNoYW50LW5vdGU
> > > > > >
+QW55IHByaXZhdGUgZGF0YSB5b3Ugd2FudDwvbWVyY2hhbnQtbm90ZT48L21
lcmNoYW50LXByaXZhdGUtZGF0YT48aXRlbXM
> > > > > >
+PGl0ZW0+PGl0ZW0tbmFtZT4xMDUzNzg2PC9pdGVtLW5hbWU
> > > > > >
+PGl0ZW0tZGVzY3JpcHRpb24+UkoxMSByb3VuZCBwbHVncyA1MHBrPC9pdGV
tLWRlc2NyaXB0aW9uPjx1bml0LXByaWNlIEdvb2dsZTo6Q2hlY2tvdXQ6
OlhNTDo6Q29uc3RhbnRzOjpJVEVNX0NVUlJFTkNZPSJVU0QiPjcuODc8L
3VuaXQtcHJpY2U
> > > > > >
+P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mbGF0LXJhdGUtc2hpcHBpbmc
> > > > > >
+PC9zaGlwcGluZy1tZXRob2RzPjwvbWVyY2hhbnQtY2hlY2tvdXQtZmxvdy1
zdXBwb3J0PjwvY2hlY2tvdXQtZmxvdy1zdXBwb3J0PjwvY2hlY2tvdXQt
c2hvcHBpbmctY2FydD4=">
> > > > > > <input type=hidden
name=signature value="1nwj0igLnOo/
> > > > > > M5Kd4cSXE5yZezQ=">
> > > > > > <input
type="image" name="Google Checkout"
alt="Fast checkout through
> > > > > > Google"
> > > > > > src="http://sandbox.google.com/checkout/buttons/checkout.gif?
> > > > > > merchant_id=676768651488839
> > > > > >
&w=180&h=46&style=white&variant=text&loc
=en_US"
> > > > > > height="46"
width="180">
>
> > > > > > </form>
>
> > > > > > On Apr 4, 6:01 pm,
"GCOEng" <gcheckout.perl.... gmail.com> wrote:
>
> > > > > > > Hi Arkadily,
> > > > > > > Yes this should work:
>
> > > > > > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > > > > > After $data (a hash
reference) is populated, $data-> will give
> > > > > > > you the encrypted cart
while $data-> will give you the
> > > > > > > signature. You can then
use it in the hidden field for 'cart' and
> > > > > > > 'signature' respectively.
If you have problem getting it to work,
> > > > > > > please let me know.
>
> > > > > > > Thanks!
>
> > > > > > > On Apr 4, 2:50 pm,
"arkadiyp" <arka... shoplet.com> wrote:
>
> > > > > > > > This was covered in
other languages, but I am not exactly sure if it
> > > > > > > > applies to perl.
Does this format of submitting data work?
>
> > > > > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > > > >
[MERCHANT-ID]/merchantCheckout method=post>
>
> > > > > > > > <input
type=hidden name=cart value="[encrypted
cart]">
> > > > > > > > <input
type=hidden name=signature
value="[signature]">
>
> > > > > > > > the encrypted cart
and signature came from
> > > > > > > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > > > > > > Or am I missing the
whole point?
>
> > > > > > > > Thank you,
> > > > > > > > Arkadiy- Hide quoted
text -
>
> > > > > > > - Show quoted text --
Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted
text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Perl & Google Checkout API"
group.
To post to this group, send email to
google-checkout-api-perl googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-perl-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checkout-api-
perl?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: You must use HTTP Basic
Authentication for API calls |
  United States |
2007-04-05 15:52:12 |
You are setting the BASE_GCO_SERVER incorrectly. Try set it
to:
h
ttps://sandbox.google.com/checkout/cws/v2/Merchant
The ID and the /merchantCheckout part is not needed as the
system will
figure this out for you. I should have make the
documentation clear!
Thanks!
On Apr 5, 12:50 pm, "arkadiyp" <arka... shoplet.com> wrote:
> 1 . Library version 1.0.3
> 2. checkout/checkout_example2.pl from
Google-Checkout-1.0.3/examples/
> 3. BASE_GCO_SERVER =https://sandbox.google.com/checkout/cws/
v2/Merchant/676768651488839/m...
>
> On Apr 5, 3:42 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > Since you are having problem running the examples,
I would guess that
> > you aren't using the API properly. Can I ask:
>
> > 1. What version of the library you are running?
> > 2. Can you show me how exactly you are running
example 1? Please copy
> > and paste the exact command.
> > 3. Can you show me what your BASE_GCO_SERVER is
set to in your
> > configuration?
>
> > Thanks!
>
> > On Apr 5, 12:11 pm, "arkadiyp"
<arka... shoplet.com> wrote:
>
> > > Here is what I get when I try to run
checkout/checkout_example1.pl
>
> > > 400: 400 Bad Request<?xml
version="1.0" encoding="UTF-8"?>
> > > <error xmlns="http://chec
kout.google.com/schema/2" serial-
> > >
number="2010ef2d-9ab4-406e-a025-15aaf2e6ec84">
> > > <error-message>Malformed URL
component: expected diagnose: diagnose,
> > > but got
676768651488839</error-message>
> > > </error>
>
> > > Thank you for your help.
>
> > > On Apr 5, 2:04 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > > > Arikadiy,
> > > > Are you able to run the examples that
came with the module?
>
> > > > Thanks!
>
> > > > On Apr 5, 10:54 am, "arkadiyp"
<arka... shoplet.com> wrote:
>
> > > > > I tried changing the post url to
what you have suggested, and it gives
> > > > > me HTTP 400 - Bad Request.
>
> > > > > Thank you for your help,
> > > > > Arkadiy
>
> > > > > On Apr 5, 1:37 pm,
"GCOEng" <gcheckout.perl.... gmail.com> wrote:
>
> > > > > > Hi Arkadiy,
> > > > > > Your usage of the API is
correct, however, your URL in the form action
> > > > > > parameter appears to be wrong.
Instead of:
>
> > > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > >
676768651488839/merchantCheckout method=post>
>
> > > > > > It should be:
>
> > > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > > 676768651488839/checkout
method=post>
>
> > > > > > Please try that and let me
know if it works. "/merchantCheckout" is
> > > > > > used for server to server post
which your example below isn't.
>
> > > > > > Thanks!
>
> > > > > > On Apr 4, 3:08 pm,
"arkadiyp" <arka... shoplet.com> wrote:
>
> > > > > > > below is the exact form
that I am trying to use, and it results in
> > > > > > > <?xml
version="1.0" encoding="UTF-8" ?>
> > > > > > > - <error
xmlns="http://chec
kout.google.com/schema/2" serial-
> > > > > > >
number="8a7f463b-a8f6-4f80-aae3-ea6d57a5a0e5">
> > > > > > >
<error-message>You must use HTTP Basic Authentication
for API calls
> > > > > > > (username=Seller ID,
password=Merchant Key)</error-message>
> > > > > > > </error>
>
> > > > > > > thank you in advance
> > > > > > > Arkadiy
>
> > > > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > > >
676768651488839/merchantCheckout method=post>
>
> > > > > > > <input
type=hidden name=cart
> > > > > > >
value="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgi
Pz48Y2hlY2tvdXQtc2hvcHBpbmctY2FydCB4bWxucz0i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> > > > > >
+PC9kZWZhdWx0LXRheC10YWJsZT48L3RheC10YWJsZXM+PHNoaXBwaW5nLW1
ldGhvZHM
> > > > > > >
+PGZsYXQtcmF0ZS1zaGlwcGluZyBuYW1lPSJVUFMgR1JPVU5EIj48cHJpY2U
gR29vZ2xlOjpDaGVja291dDo6WE1MOjpDb25zdGFudHM6OklURU1fQ1VS
UkVOQ1k9IlVTRCI
> > > > > > >
+MC4wMDwvcHJpY2U+PC9mbGF0LXJhdGUtc2hpcHBpbmc
> > > > > > >
+PGZsYXQtcmF0ZS1zaGlwcGluZyBuYW1lPSJGRURFWCAyTkQgREFZIj48cHJ
pY2UgR29vZ2xlOjpDaGVja291dDo6WE1MOjpDb25zdGFudHM6OklURU1f
Q1VSUkVOQ1k9IlVTRCI
> > > > > > >
+NDY8L3ByaWNlPjwvZmxhdC1yYXRlLXNoaXBwaW5nPjxmbGF0LXJhdGUtc2h
pcHBpbmcgbmFtZT0iRkVERVggU1RBTkRBUkQgT1ZFUk5JVEUiPjxwcmlj
ZSBHb29nbGU6OkNoZWNrb3V0OjpYTUw6OkNvbnN0YW50czo6SVRFTV9DV
VJSRU5DWT0iVVNEIj41NTwvcHJpY2U
> > > > > > >
+PC9mbGF0LXJhdGUtc2hpcHBpbmc
> > > > > > >
+PC9zaGlwcGluZy1tZXRob2RzPjwvbWVyY2hhbnQtY2hlY2tvdXQtZmxvdy1
zdXBwb3J0PjwvY2hlY2tvdXQtZmxvdy1zdXBwb3J0PjwvY2hlY2tvdXQt
c2hvcHBpbmctY2FydD4=">
> > > > > > > <input
type=hidden name=signature value="1nwj0igLnOo/
> > > > > > >
M5Kd4cSXE5yZezQ=">
> > > > > > > <input
type="image" name="Google Checkout"
alt="Fast checkout through
> > > > > > > Google"
> > > > > > > src="http://sandbox.google.com/checkout/buttons/checkout.gif?
> > > > > > >
merchant_id=676768651488839
> > > > > > >
&w=180&h=46&style=white&variant=text&loc
=en_US"
> > > > > > > height="46"
width="180">
>
> > > > > > > </form>
>
> > > > > > > On Apr 4, 6:01 pm,
"GCOEng" <gcheckout.perl.... gmail.com> wrote:
>
> > > > > > > > Hi Arkadily,
> > > > > > > > Yes this should
work:
>
> > > > > > > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > > > > > > After $data (a hash
reference) is populated, $data-> will give
> > > > > > > > you the encrypted
cart while $data-> will give you the
> > > > > > > > signature. You can
then use it in the hidden field for 'cart' and
> > > > > > > > 'signature'
respectively. If you have problem getting it to work,
> > > > > > > > please let me know.
>
> > > > > > > > Thanks!
>
> > > > > > > > On Apr 4, 2:50 pm,
"arkadiyp" <arka... shoplet.com> wrote:
>
> > > > > > > > > This was
covered in other languages, but I am not exactly sure if it
> > > > > > > > > applies to
perl. Does this format of submitting data work?
>
> > > > > > > > > <form
action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > > > > >
[MERCHANT-ID]/merchantCheckout method=post>
>
> > > > > > > > >
<input type=hidden name=cart value="[encrypted
cart]">
> > > > > > > > >
<input type=hidden name=signature
value="[signature]">
>
> > > > > > > > > the encrypted
cart and signature came from
> > > > > > > > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > > > > > > > Or am I missing
the whole point?
>
> > > > > > > > > Thank you,
> > > > > > > > > Arkadiy- Hide
quoted text -
>
> > > > > > > > - Show quoted text
-- Hide quoted text -
>
> > > > > > - Show quoted text -- Hide
quoted text -
>
> > > > - Show quoted text -- Hide quoted text
-
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Perl & Google Checkout API"
group.
To post to this group, send email to
google-checkout-api-perl googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-perl-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checkout-api-
perl?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: You must use HTTP Basic
Authentication for API calls |
  United States |
2007-04-05 16:14:35 |
This is what I am getting after setting the variable to
BASE_GCO_SERVER = h
ttps://sandbox.google.com/checkout/cws/v2/Merchant
su-2.05a$ checkout/checkout_example2.pl
400: 400 Bad Request<?xml version="1.0"
encoding="UTF-8"?>
<error xmlns="http://chec
kout.google.com/schema/2" serial-
number="84f9a9db-f6c1-4758-bd19-674da5d003ae">
<error-message>Error parsing XML; message from
parser is: Element or
attribute do not match QName production:
QName::=(NCName':')?NCName.</
error-message>
</error>
su-2.05a$ checkout/checkout_example1.pl
400: 400 Bad Request<?xml version="1.0"
encoding="UTF-8"?>
<error xmlns="http://chec
kout.google.com/schema/2" serial-
number="7331ce7a-e56a-419c-9fc9-3647ef1d5db2">
<error-message>Error parsing XML; message from
parser is: Element or
attribute do not match QName production:
QName::=(NCName':')?NCName.</
error-message>
</error>
I also tried BASE_GCO_SERVER =
https://sandbox.google.com/checkout/cws/v2/Merchant/
for good measure but no dice.
On Apr 5, 4:52 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
> You are setting the BASE_GCO_SERVER incorrectly. Try
set it to:
>
> h
ttps://sandbox.google.com/checkout/cws/v2/Merchant
>
> The ID and the /merchantCheckout part is not needed as
the system will
> figure this out for you. I should have make the
documentation clear!
>
> Thanks!
>
> On Apr 5, 12:50 pm, "arkadiyp"
<arka... shoplet.com> wrote:
>
>
>
> > 1 . Library version 1.0.3
> > 2. checkout/checkout_example2.pl from
Google-Checkout-1.0.3/examples/
> > 3. BASE_GCO_SERVER =https://sandbox.google.com/checkout/cws/
v2/Merchant/676768651488839/m...
>
> > On Apr 5, 3:42 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > > Since you are having problem running the
examples, I would guess that
> > > you aren't using the API properly. Can I
ask:
>
> > > 1. What version of the library you are
running?
> > > 2. Can you show me how exactly you are
running example 1? Please copy
> > > and paste the exact command.
> > > 3. Can you show me what your BASE_GCO_SERVER
is set to in your
> > > configuration?
>
> > > Thanks!
>
> > > On Apr 5, 12:11 pm, "arkadiyp"
<arka... shoplet.com> wrote:
>
> > > > Here is what I get when I try to run
checkout/checkout_example1.pl
>
> > > > 400: 400 Bad Request<?xml
version="1.0" encoding="UTF-8"?>
> > > > <error xmlns="http://chec
kout.google.com/schema/2" serial-
> > > >
number="2010ef2d-9ab4-406e-a025-15aaf2e6ec84">
> > > > <error-message>Malformed URL
component: expected diagnose: diagnose,
> > > > but got
676768651488839</error-message>
> > > > </error>
>
> > > > Thank you for your help.
>
> > > > On Apr 5, 2:04 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > > > > Arikadiy,
> > > > > Are you able to run the examples
that came with the module?
>
> > > > > Thanks!
>
> > > > > On Apr 5, 10:54 am,
"arkadiyp" <arka... shoplet.com> wrote:
>
> > > > > > I tried changing the post url
to what you have suggested, and it gives
> > > > > > me HTTP 400 - Bad Request.
>
> > > > > > Thank you for your help,
> > > > > > Arkadiy
>
> > > > > > On Apr 5, 1:37 pm,
"GCOEng" <gcheckout.perl.... gmail.com> wrote:
>
> > > > > > > Hi Arkadiy,
> > > > > > > Your usage of the API is
correct, however, your URL in the form action
> > > > > > > parameter appears to be
wrong. Instead of:
>
> > > > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > > >
676768651488839/merchantCheckout method=post>
>
> > > > > > > It should be:
>
> > > > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > > > 676768651488839/checkout
method=post>
>
> > > > > > > Please try that and let
me know if it works. "/merchantCheckout" is
> > > > > > > used for server to server
post which your example below isn't.
>
> > > > > > > Thanks!
>
> > > > > > > On Apr 4, 3:08 pm,
"arkadiyp" <arka... shoplet.com> wrote:
>
> > > > > > > > below is the exact
form that I am trying to use, and it results in
> > > > > > > > <?xml
version="1.0" encoding="UTF-8" ?>
> > > > > > > > - <error
xmlns="http://chec
kout.google.com/schema/2" serial-
> > > > > > > >
number="8a7f463b-a8f6-4f80-aae3-ea6d57a5a0e5">
> > > > > > > >
<error-message>You must use HTTP Basic Authentication
for API calls
> > > > > > > > (username=Seller ID,
password=Merchant Key)</error-message>
> > > > > > > > </error>
>
> > > > > > > > thank you in
advance
> > > > > > > > Arkadiy
>
> > > > > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > > > >
676768651488839/merchantCheckout method=post>
>
> > > > > > > > <input
type=hidden name=cart
> > > > > > > >
value="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgi
Pz48Y2hlY2tvdXQtc2hvcHBpbmctY2FydCB4bWxucz0iaHR0cDovL2No
ZWNrb3V0Lmdvb2dsZS5jb20vc2NoZW1hLzIiPjxzaG9wcGluZy1jYXJ0
PjxjYXJ0LWV4cGlyYXRpb24+PGdvb2QtdW50aWwtZGF0ZT4yMDA4LTA0L
TA0VDE4OjU5OjM1WjwvZ29vZC11bnRpbC1kYXRlPjwvY2FydC1leHBpcmF0
aW9uPjxtZXJjaGFudC1wcml2YXRlLWRhdGE
> > > > > > > >
+PG1lcmNoYW50LW5vdGU
> > > > > > > >
+QW55IHByaXZhdGUgZGF0YSB5b3Ugd2FudDwvbWVyY2hhbnQtbm90ZT48L21
lcmNoYW50LXByaXZhdGUtZGF0YT48aXRlbXM
> > > > > > > >
+PGl0ZW0+PGl0ZW0tbmFtZT4xMDUzNzg2PC9pdGVtLW5hbWU
> > > > > > > >
+PGl0ZW0tZGVzY3JpcHRpb24+UkoxMSByb3VuZCBwbHVncyA1MHBrPC9pdGV
tLWRlc2NyaXB0aW9uPjx1bml0LXByaWNlIEdvb2dsZTo6Q2hlY2tvdXQ
6OlhNTDo6Q29uc3RhbnRzOjpJVEVNX0NVUlJFTkNZPSJVU0QiPjcuODc
8L3VuaXQtcHJpY2U
> > > > > > > >
+PHF1YW50aXR5PjE8L3F1YW50aXR5PjwvaXRlbT48aXRlbT48aXRlbS1uYW1
lPkhFV0M0MTI3RDwvaXRlbS1uYW1lPjxpdGVtLWRlc2NyaXB0aW9uPkJ
sYWNrIFByaW50IENhcnRyaWRnZSBmb3IgSFAgTGFzZXJKZXQgNDAwMCw
gNDA1MT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vdXQ
tc2hvcHBpbmctY2FydD4=">
> > > > > > > > <input
type=hidden name=signature value="1nwj0igLnOo/
> > > > > > > >
M5Kd4cSXE5yZezQ=">
> > > > > > > > <input
type="image" name="Google Checkout"
alt="Fast checkout through
> > > > > > > > Google"
> > > > > > > > src="http://sandbox.google.com/checkout/buttons/checkout.gif?
> > > > > > > >
merchant_id=676768651488839
> > > > > > > >
&w=180&h=46&style=white&variant=text&loc
=en_US"
> > > > > > > >
height="46" width="180">
>
> > > > > > > >
</form>
>
> > > > > > > > On Apr 4, 6:01 pm,
"GCOEng" <gcheckout.perl.... gmail.com> wrote:
>
> > > > > > > > > Hi Arkadily,
> > > > > > > > > Yes this should
work:
>
> > > > > > > > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > > > > > > > After $data (a
hash reference) is populated, $data-> will give
> > > > > > > > > you the
encrypted cart while $data-> will give you
the
> > > > > > > > > signature. You
can then use it in the hidden field for 'cart' and
> > > > > > > > > 'signature'
respectively. If you have problem getting it to work,
> > > > > > > > > please let me
know.
>
> > > > > > > > > Thanks!
>
> > > > > > > > > On Apr 4, 2:50
pm, "arkadiyp" <arka... shoplet.com> wrote:
>
> > > > > > > > > > This was
covered in other languages, but I am not exactly sure if it
> > > > > > > > > > applies to
perl. Does this format of submitting data work?
>
> > > > > > > > > > <form
action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > > > > > >
[MERCHANT-ID]/merchantCheckout method=post>
>
> > > > > > > > > >
<input type=hidden name=cart value="[encrypted
cart]">
> > > > > > > > > >
<input type=hidden name=signature
value="[signature]">
>
> > > > > > > > > > the
encrypted cart and signature came from
> > > > > > > > > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > > > > > > > > Or am I
missing the whole point?
>
> > > > > > > > > > Thank
you,
> > > > > > > > > > Arkadiy-
Hide quoted text -
>
> > > > > > > > > - Show quoted
text -- Hide quoted text -
>
> > > > > > > - Show quoted text --
Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted
text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Perl & Google Checkout API"
group.
To post to this group, send email to
google-checkout-api-perl googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-perl-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checkout-api-
perl?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: You must use HTTP Basic
Authentication for API calls |
  United States |
2007-04-05 16:21:09 |
Interesting. I have not seen this problem before. This is
from running
the example code correct? I have no idea what QName or CName
is
suppose to mean nor can I reproduce your problem with
v1.0.3. It looks
like somewhere in the merchant item name or description,
there is an
un-escaped "<" or ">" character
which generates an invalid XML.
Anyway, please confirm that the error is from running the
example code
unmodified.
Thanks!
On Apr 5, 2:14 pm, "arkadiyp" <arka... shoplet.com> wrote:
> This is what I am getting after setting the variable
to
> BASE_GCO_SERVER =h
ttps://sandbox.google.com/checkout/cws/v2/Merchant
>
> su-2.05a$ checkout/checkout_example2.pl
> 400: 400 Bad Request<?xml version="1.0"
encoding="UTF-8"?>
> <error xmlns="http://chec
kout.google.com/schema/2" serial-
>
number="84f9a9db-f6c1-4758-bd19-674da5d003ae">
> <error-message>Error parsing XML; message from
parser is: Element or
> attribute do not match QName production:
QName::=(NCName':')?NCName.</
> error-message>
> </error>
>
> su-2.05a$ checkout/checkout_example1.pl
> 400: 400 Bad Request<?xml version="1.0"
encoding="UTF-8"?>
> <error xmlns="http://chec
kout.google.com/schema/2" serial-
>
number="7331ce7a-e56a-419c-9fc9-3647ef1d5db2">
> <error-message>Error parsing XML; message from
parser is: Element or
> attribute do not match QName production:
QName::=(NCName':')?NCName.</
> error-message>
> </error>
>
> I also tried BASE_GCO_SERVER =
https://sandbox.google.com/checkout/cws/v2/Merchant/
> for good measure but no dice.
>
> On Apr 5, 4:52 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > You are setting the BASE_GCO_SERVER incorrectly.
Try set it to:
>
> >h
ttps://sandbox.google.com/checkout/cws/v2/Merchant
>
> > The ID and the /merchantCheckout part is not
needed as the system will
> > figure this out for you. I should have make the
documentation clear!
>
> > Thanks!
>
> > On Apr 5, 12:50 pm, "arkadiyp"
<arka... shoplet.com> wrote:
>
> > > 1 . Library version 1.0.3
> > > 2. checkout/checkout_example2.pl from
Google-Checkout-1.0.3/examples/
> > > 3. BASE_GCO_SERVER =https://sandbox.google.com/checkout/cws/
v2/Merchant/676768651488839/m...
>
> > > On Apr 5, 3:42 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
>
> > > > Since you are having problem running the
examples, I would guess that
> > > > you aren't using the API properly. Can I
ask:
>
> > > > 1. What version of the library you are
running?
> > > > 2. Can you show me how exactly you are
running example 1? Please copy
> > > > and paste the exact command.
> > > > 3. Can you show me what your
BASE_GCO_SERVER is set to in your
> > > > configuration?
>
> > > > Thanks!
>
> > > > On Apr 5, 12:11 pm, "arkadiyp"
<arka... shoplet.com> wrote:
>
> > > > > Here is what I get when I try to
run checkout/checkout_example1.pl
>
> > > > > 400: 400 Bad Request<?xml
version="1.0" encoding="UTF-8"?>
> > > > > <error xmlns="http://chec
kout.google.com/schema/2" serial-
> > > > >
number="2010ef2d-9ab4-406e-a025-15aaf2e6ec84">
> > > > > <error-message>Malformed
URL component: expected diagnose: diagnose,
> > > > > but got
676768651488839</error-message>
> > > > > </error>
>
> > > > > Thank you for your help.
>
> > > > > On Apr 5, 2:04 pm,
"GCOEng" <gcheckout.perl.... gmail.com> wrote:
>
> > > > > > Arikadiy,
> > > > > > Are you able to run the
examples that came with the module?
>
> > > > > > Thanks!
>
> > > > > > On Apr 5, 10:54 am,
"arkadiyp" <arka... shoplet.com> wrote:
>
> > > > > > > I tried changing the post
url to what you have suggested, and it gives
> > > > > > > me HTTP 400 - Bad
Request.
>
> > > > > > > Thank you for your help,
> > > > > > > Arkadiy
>
> > > > > > > On Apr 5, 1:37 pm,
"GCOEng" <gcheckout.perl.... gmail.com> wrote:
>
> > > > > > > > Hi Arkadiy,
> > > > > > > > Your usage of the
API is correct, however, your URL in the form action
> > > > > > > > parameter appears to
be wrong. Instead of:
>
> > > > > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > > > >
676768651488839/merchantCheckout method=post>
>
> > > > > > > > It should be:
>
> > > > > > > > <form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > > > >
676768651488839/checkout method=post>
>
> > > > > > > > Please try that and
let me know if it works. "/merchantCheckout" is
> > > > > > > > used for server to
server post which your example below isn't.
>
> > > > > > > > Thanks!
>
> > > > > > > > On Apr 4, 3:08 pm,
"arkadiyp" <arka... shoplet.com> wrote:
>
> > > > > > > > > below is the
exact form that I am trying to use, and it results in
> > > > > > > > > <?xml
version="1.0" encoding="UTF-8" ?>
> > > > > > > > > - <error
xmlns="http://chec
kout.google.com/schema/2" serial-
> > > > > > > > >
number="8a7f463b-a8f6-4f80-aae3-ea6d57a5a0e5">
> > > > > > > > >
<error-message>You must use HTTP Basic Authentication
for API calls
> > > > > > > > >
(username=Seller ID, password=Merchant
Key)</error-message>
> > > > > > > > >
</error>
>
> > > > > > > > > thank you in
advance
> > > > > > > > > Arkadiy
>
> > > > > > > > > <form
action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > > > > >
676768651488839/merchantCheckout method=post>
>
> > > > > > > > >
<input type=hidden name=cart
> > > > > > > > >
value="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgi
Pz48Y2hlY2tvdXQtc2hvcHBpbmctY2FydCB4bWxucz0iaHR0cDovL2No
ZWNrb3V0Lmdvb2dsZS5jb20vc2NoZW1hLzIiPjxzaG9wcGluZy1jYXJ0
PjxjYXJ0LWV4cGlyYXRpb24+PGdvb2QtdW50aWwtZGF0ZT4yMDA4LTA0L
TA0VDE4OjU5OjM1WjwvZ29vZC11bnRpbC1kYXRlPjwvY2FydC1leHBpcmF0
aW9uPjxtZ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WE1MOjpDb25zdGFudHM6OklURU1fQ1V
SUkVOQ1k9IlVTRCI
> > > > > > > > >
+MC4wMDwvcHJpY2U+PC9mbGF0LXJhdGUtc2hpcHBpbmc
> > > > > > > > >
+PGZsYXQtcmF0ZS1zaGlwcGluZyBuYW1lPSJGRURFWCAyTkQgREFZIj48cHJ
pY2UgR29vZ2xlOjpDaGVja291dDo6WE1MOjpDb25zdGFudHM6OklURU1
fQ1VSUkVOQ1k9IlVTRCI
> > > > > > > > >
+NDY8L3ByaWNlPjwvZmxhdC1yYXRlLXNoaXBwaW5nPjxmbGF0LXJhdGUtc2h
pcHBpbmcgbmFtZT0iRkVERVggU1RBTkRBUkQgT1ZFUk5JVEUiPjxwcml
jZSBHb29nbGU6OkNoZWNrb3V0OjpYTUw6OkNvbnN0YW50czo6SVRFTV9
DVVJSRU5DWT0iVVNEIj41NTwvcHJpY2U
> > > > > > > > >
+PC9mbGF0LXJhdGUtc2hpcHBpbmc
> > > > > > > > >
+PC9zaGlwcGluZy1tZXRob2RzPjwvbWVyY2hhbnQtY2hlY2tvdXQtZmxvdy1
zdXBwb3J0PjwvY2hlY2tvdXQtZmxvdy1zdXBwb3J0PjwvY2hlY2tvdXQ
tc2hvcHBpbmctY2FydD4=">
> > > > > > > > >
<input type=hidden name=signature
value="1nwj0igLnOo/
> > > > > > > > >
M5Kd4cSXE5yZezQ=">
> > > > > > > > > <input
type="image" name="Google Checkout"
alt="Fast checkout through
> > > > > > > > > Google"
> > > > > > > > >
src="http://sandbox.google.com/checkout/buttons/checkout.gif?
> > > > > > > > >
merchant_id=676768651488839
> > > > > > > > >
&w=180&h=46&style=white&variant=text&loc
=en_US"
> > > > > > > > >
height="46" width="180">
>
> > > > > > > > >
</form>
>
> > > > > > > > > On Apr 4, 6:01
pm, "GCOEng" <gcheckout.perl.... gmail.com> wrote:
>
> > > > > > > > > > Hi
Arkadily,
> > > > > > > > > > Yes this
should work:
>
> > > > > > > > > > my $data =
$gco->get_xml_and_signature($google_cart);
>
> > > > > > > > > > After
$data (a hash reference) is populated, $data-> will
give
> > > > > > > > > > you the
encrypted cart while $data-> will give you
the
> > > > > > > > > > signature.
You can then use it in the hidden field for 'cart' and
> > > > > > > > > >
'signature' respectively. If you have problem getting it to
work,
> > > > > > > > > > please let
me know.
>
> > > > > > > > > > Thanks!
>
> > > > > > > > > > On Apr 4,
2:50 pm, "arkadiyp" <arka... shoplet.com> wrote:
>
> > > > > > > > > > > This
was covered in other languages, but I am not exactly sure if
it
> > > > > > > > > > >
applies to perl. Does this format of submitting data work?
>
> > > > > > > > > > >
<form action=
https://sandbox.google.com/checkout/cws/v2/Merchant/
> > > > > > > > > > >
[MERCHANT-ID]/merchantCheckout method=post>
>
> > > > > > > > > > >
<input type=hidden name=cart value="[encrypted
cart]">
> > > > > > > > > > >
<input type=hidden name=signature
value="[signature]">
>
> > > > > > > > > > > the
encrypted cart and signature came from
> > > > > > > > > > > my
$data = $gco->get_xml_and_signature($google_cart);
>
> > > > > > > > > > > Or am
I missing the whole point?
>
> > > > > > > > > > > Thank
you,
> > > > > > > > > > >
Arkadiy- Hide quoted text -
>
> > > > > > > > > > - Show
quoted text -- Hide quoted text -
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Perl & Google Checkout API"
group.
To post to this group, send email to
google-checkout-api-perl googlegroups.com
To unsubscribe from this group, send email to
google-checkout-api-perl-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-checkout-api-
perl?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: You must use HTTP Basic
Authentication for API calls |
  United States |
2007-04-05 16:30:44 |
I have just untared the examples from scratch just to make
sure that
example code is not modified. I am still getting the same
thing. The
RAW xml returned from example 3 is this:
<?xml version="1.0"
encoding="UTF-8"?><checkout-shopping-cart
xmlns="http://checkout.google.com/schema/2&q
uot;><shopping-cart><cart-
expiration><good-until-date>2007-05-05T18:28:46Z<
;/good-until-date></
cart-expiration><merchant-private-data><merchant
-note>Any private data
you
want</merchant-note></merchant-private-data><
items><item><item-
name>Fish</item-name><item-description>A
fish</item-description><unit-
price
Google::Checkout::XML::Constants::ITEM_CURRENCY="USD&qu
ot;>12.34</
unit-price><quantity>12</quantity><merchan
t-private-item-data><item-
note>gold</item-note></merchant-private-item-dat
a><tax-table-
selector>taxtable</tax-table-selector></item>
<item><item-name>Coral</
item-name><item-description>A
coral</item-description><unit-price
Google::Checkout::XML::Constants::ITEM_CURRENCY="USD&qu
ot;>99.99</unit-
price><quantity>1</quantity><merchant-priv
ate-item-data><item-
note>green</item-note></merchant-private-item-da
ta><tax-table-
selector>taxtable</tax-table-selector></item>
</items></shopping-
cart><checkout-flow-support><merchant-checkout-f
low-support><edit-cart-
url>http://edit/cart/url</edit-cart
-url><continue-shopping-url>http://
continue/shopping/url</continue-shopping-url><reque
st-buyer-phone-
number>true</request-buyer-phone-number><analyti
cs-
data>SW5zZXJ0IDxhbmFseXRpY3MtZGF0YT4gdmFsdWUgaGVyZS4=<
/analytics-
data><tax-tables
Google::Checkout::XML::Constants::MERCHANT_CALCULATED="
true"><default-
tax-table><tax-rules><default-tax-rule><sh
ipping-taxed>true</shipping-
taxed><rate>0.025</rate><tax-area><u
s-state-area><state>CA</state></us-
state-area><us-zip-area><zip-pattern>94*</
zip-pattern></us-zip-
area><us-country-area
country-area="FULL_50_STATES"></us-country-
area></tax-area></default-tax-rule><defaul
t-tax-rule><shipping-
taxed>true</shipping-taxed><rate>0.025</ra
te><tax-area><us-country-
area
country-area="FULL_50_STATES"></us-country-a
rea></tax-area></
default-tax-rule></tax-rules></default-tax-table
><alternate-tax-
tables><alternate-tax-table
Google::Checkout::XML::Constants::STANDALONE="true"
;
Google::Checkout::XML::Constants::NAME="taxtable"&
gt;<alternate-tax-
rules><alternate-tax-rule><rate>0.0887</ra
te><tax-area><us-state-
area><state>NY</state></us-state-area>&
lt;us-state-area><state>PI</
state></us-state-area></tax-area></alterna
te-tax-rule></alternate-tax-
rules></alternate-tax-table></alternate-tax-tabl
es></tax-
tables><merchant-calculations><merchant-calculat
ions-url>http://
callback/url</merchant-calculations-url><accept-mer
chant-coupons>true</
accept-merchant-coupons><accept-gift-certificates>t
rue</accept-gift-
certificates></merchant-calculations><shipping-m
ethods><flat-rate-
shipping name="Flat rate UPS"><price
Google::Checkout::XML::Constants::ITEM_CURRENCY="USD&qu
ot;>19.99</price></
flat-rate-shipping></shipping-methods></merchant
-checkout-flow-
support></checkout-flow-support></checkout-shopp
ing-cart>
But examples 1 and 2 fail.
On Apr 5, 5:21 pm, "GCOEng"
<gcheckout.perl.... gmail.com> wrote:
> Interesting. I have not seen this problem before. This
is from running
> the example code correct? I have no idea what QName or
CName is
> suppose to mean nor can I reproduce your problem with
v1.0.3. It looks
> like somewhere in the merchant item name or
description, there is an
> un-escaped "<" or ">"
character which generates an invalid XML.
> Anyway, please confirm that the error is from running
the example code
> unmodified.
>
> Thanks!
>
> On Apr 5, 2:14 pm, "arkadiyp" <arka... shoplet.com> wrote:
>
>
>
> > This is what I am getting a | |