diff options
author | Ruslan Mustakov <r.mustakov@gmail.com> | 2018-04-19 17:35:21 +0700 |
---|---|---|
committer | Ruslan Mustakov <r.mustakov@gmail.com> | 2018-04-19 21:04:20 +0700 |
commit | 265caa687b6634487f5f2dcf20247534fd2a408e (patch) | |
tree | 24273d9afcdb0e1cab242ef6e623851d092c56f3 /platform/iphone | |
parent | 394e6d5ee1479d402892d6df75dddceeb967efcc (diff) |
Provide error details when in-app purchase fails
Diffstat (limited to 'platform/iphone')
-rw-r--r-- | platform/iphone/in_app_store.mm | 1 |
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; |