-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apple receipt field app_item_id type mismatch #44
Comments
I guess your receipt is iOS 6 style. So you can use your original receipt definition to solve it. |
I got an error in production. my phone is iOS11.
|
@jun06t Great fix! But would you mind explaining the background of this issue a bit? Did Apple change anything recently? |
As stated here Apple Receipt Fields "app_item_id" field should be a string but in the library it is mapped to int64. This causes an error during json decoding.
EDIT:
Apparently Apple is giving out different responses some has app_item_id as string and some has it as a number. In this case a custom type that implements Unmarshaler interface would be better suited for this. Something like the following:
The text was updated successfully, but these errors were encountered: