transaction event state "FAILED" or "failed"

In the documentation for the purchase, it says:

  • transaction objects in the purchase callback will never be in the state “canceled”. The state will be “FAILED” if the user canceled the transaction.

And I’m wondering if it is indeed all in uppercase, given the fact all the other states are in lowercase.  Preston, will you confirm? 

Thank you.

Naomi

@naomi

I’m using all lower-case and it’s working as expected.

To clarify a bit more:

transaction.state = “failed”

transaction.errorType = “FAILED”

transaction.errorString = “FAILED”

@ingemar, thank you so much for the details.  I appreciate it.

Naomi

Sorry for the confusion. All transaction states are lower case as they are while using the Corona store library.

The documentation will be updated.

That sounds great.  Thank you, Preston.

Naomi

@naomi

I’m using all lower-case and it’s working as expected.

To clarify a bit more:

transaction.state = “failed”

transaction.errorType = “FAILED”

transaction.errorString = “FAILED”

@ingemar, thank you so much for the details.  I appreciate it.

Naomi

Sorry for the confusion. All transaction states are lower case as they are while using the Corona store library.

The documentation will be updated.

That sounds great.  Thank you, Preston.

Naomi