summaryrefslogtreecommitdiff
path: root/platform/iphone
diff options
context:
space:
mode:
authorRuslan Mustakov <r.mustakov@gmail.com>2018-04-19 17:35:21 +0700
committerRuslan Mustakov <r.mustakov@gmail.com>2018-04-19 21:04:20 +0700
commit265caa687b6634487f5f2dcf20247534fd2a408e (patch)
tree24273d9afcdb0e1cab242ef6e623851d092c56f3 /platform/iphone
parent394e6d5ee1479d402892d6df75dddceeb967efcc (diff)
Provide error details when in-app purchase fails
Diffstat (limited to 'platform/iphone')
-rw-r--r--platform/iphone/in_app_store.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/iphone/in_app_store.mm b/platform/iphone/in_app_store.mm
index 6fa189e917..2cdd477ed1 100644
--- a/platform/iphone/in_app_store.mm
+++ b/platform/iphone/in_app_store.mm
@@ -238,6 +238,7 @@ Error InAppStore::restore_purchases() {
ret["type"] = "purchase";
ret["result"] = "error";
ret["product_id"] = pid;
+ ret["error"] = String::utf8([transaction.error.localizedDescription UTF8String]);
InAppStore::get_singleton()->_post_event(ret);
[[SKPaymentQueue defaultQueue] finishTransaction:transaction];
} break;