diff options
author | Poq Xert <poqxert@poqxert.ru> | 2020-06-24 17:34:20 +1000 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-06-24 17:15:56 +0200 |
commit | 4c0b077faaff3f0a492bb9f48984da0b13cedc7e (patch) | |
tree | 1d16c6162193dcdb5ec59918a9db65f43372a78b /platform/iphone | |
parent | 3c9fc891c860a385fb5461b6f07566df1b9db38e (diff) |
Updated purchase receipt suitable for sending to apple verification server
(cherry picked from commit bd7192572697e919a8eb7cf6d8b44d699dae24c9)
Diffstat (limited to 'platform/iphone')
-rw-r--r-- | platform/iphone/in_app_store.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/iphone/in_app_store.mm b/platform/iphone/in_app_store.mm index a2efd6691b..548dcc549d 100644 --- a/platform/iphone/in_app_store.mm +++ b/platform/iphone/in_app_store.mm @@ -207,7 +207,7 @@ Error InAppStore::restore_purchases() { NSString *receipt_to_send = nil; if (receipt != nil) { - receipt_to_send = [receipt description]; + receipt_to_send = [receipt base64EncodedStringWithOptions:0]; } Dictionary receipt_ret; receipt_ret["receipt"] = String::utf8(receipt_to_send != nil ? [receipt_to_send UTF8String] : ""); |