List Info

Thread: What does this error "Invalid State Transition" mean?




What does this error "Invalid State Transition" mean?
country flaguser name
United States
2007-10-11 17:16:20
Why do I get this error?  And how do I stop it from
happening?


Integration Issue Detail
Related order: 555317572202987
Time of occurrence: Oct 10, 2007 11:00:34 PM EDT
Error: Invalid state transition
Warnings:
XML We Received: <?xml version="1.0"
encoding="UTF-8"?>
<charge-order xmlns="http://chec
kout.google.com/schema/2" google-order-
number="555317572202987">
	<amount
currency="USD">59.98</amount>
</charge-order>


XML We Sent: <?xml version="1.0"
encoding="UTF-8"?>
<error xmlns="http://chec
kout.google.com/schema/2" serial-
number="84bd92e0-2f25-4aab-bcbf-9db90bec7290">
  <error-message>Invalid state
transition</error-message>
</error>


--~--~---------~--~----~------------~-------~--~----~
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: What does this error "Invalid State Transition" mean?
user name
2007-10-12 08:56:31
the xml api docs say:

Invalid state change errors occur when an order processing
command
cannot be executed on the order in its current state. For
example, if
you have already charged a customer for an order, you must
issue a
<refund-order> request before you can issue a
<cancel-order> request.

meaning, you have to follow the normal flow of commands.
what messages did you send to google? (post the xmls here if
you can).

here's a figure with the typical order flow:
http://code.google.com/apis/checkout
/developer/index.html#typical_order_flow

cheers,

On 10/11/07, ricozinn <ricozinngmail.com> wrote:
>
> Why do I get this error?  And how do I stop it from
happening?
>
>
> Integration Issue Detail
> Related order: 555317572202987
> Time of occurrence: Oct 10, 2007 11:00:34 PM EDT
> Error: Invalid state transition
> Warnings:
> XML We Received: <?xml version="1.0"
encoding="UTF-8"?>
> <charge-order xmlns="http://chec
kout.google.com/schema/2" google-order-
> number="555317572202987">
>         <amount
currency="USD">59.98</amount>
> </charge-order>
>
>
> XML We Sent: <?xml version="1.0"
encoding="UTF-8"?>
> <error xmlns="http://chec
kout.google.com/schema/2" serial-
>
number="84bd92e0-2f25-4aab-bcbf-9db90bec7290">
>   <error-message>Invalid state
transition</error-message>
> </error>
>
>
> >
>


-- 
pablof

--~--~---------~--~----~------------~-------~--~----~
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: What does this error "Invalid State Transition" mean?
country flaguser name
United States
2007-10-11 20:26:20
Hi,

I've taken a look at the order history for that specific
order.  It
looks like you send the first charge command at 11:00:30PM
EDT then
sent a second charge command at 11:00:34.  The error
occurred because
the order was already in the charging process. To prevent
this in the
future, please wait for the chargeable order status
notification and
charge each order once unless you receive a failure
notification.

-Peng

On Oct 11, 3:16 pm, ricozinn <ricoz...gmail.com> wrote:
> Why do I get this error?  And how do I stop it from
happening?
>
> Integration Issue Detail
> Related order: 555317572202987
> Time of occurrence: Oct 10, 2007 11:00:34 PM EDT
> Error: Invalid state transition
> Warnings:
> XML We Received: <?xml version="1.0"
encoding="UTF-8"?>
> <charge-order xmlns="http://chec
kout.google.com/schema/2" google-order-
> number="555317572202987">
>         <amount
currency="USD">59.98</amount>
> </charge-order>
>
> XML We Sent: <?xml version="1.0"
encoding="UTF-8"?>
> <error xmlns="http://chec
kout.google.com/schema/2" serial-
>
number="84bd92e0-2f25-4aab-bcbf-9db90bec7290">
>   <error-message>Invalid state
transition</error-message>
> </error>


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---


[1-3]

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