Should be implemented in
- capture cam
- white labeled apps
[Wallet Page]
Currently when user perform in app purchase and if backend returns error during receipt validation user will get "Failed to Credits" toast notification no matter what was the error response.
It would be nice to enhance toast notification with more information such as reason.
Here are the error messages that can be returned by backend
{
"error": {
"type": "invalid_receipt",
"message": "Invalid purchase receipt"
},
"status_code": 400
}
{
"error": {
"type": "duplicate_receipt_id",
"message": "The receipt has already been used to get NUM points."
},
"status_code": 400
}

┆Issue is synchronized with this Asana task by Unito
┆Created By: Sam