Remove iOS 6 style transaction receipt fields

This commit is contained in:
Yingjie Run
2017-07-24 17:43:16 +08:00
parent 7808531e12
commit 58b1c636fd
3 changed files with 7 additions and 19 deletions

View File

@@ -53,13 +53,6 @@ func TestHandleError(t *testing.T) {
t.Errorf("got %v\nwant %v", actual, expected)
}
// status 21006
expected = errors.New("This receipt is valid but the subscription has expired. When this status code is returned to your server, the receipt data is also decoded and returned as part of the response.")
actual = HandleError(21006)
if !reflect.DeepEqual(actual, expected) {
t.Errorf("got %v\nwant %v", actual, expected)
}
// status 21007
expected = errors.New("This receipt is from the test environment, but it was sent to the production environment for verification. Send it to the test environment instead.")
actual = HandleError(21007)