From bd7192572697e919a8eb7cf6d8b44d699dae24c9 Mon Sep 17 00:00:00 2001 From: Poq Xert Date: Wed, 24 Jun 2020 17:34:20 +1000 Subject: [PATCH] Updated purchase receipt suitable for sending to apple verification server --- platform/iphone/in_app_store.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/iphone/in_app_store.mm b/platform/iphone/in_app_store.mm index 855ab195b06..a82fbc77208 100644 --- a/platform/iphone/in_app_store.mm +++ b/platform/iphone/in_app_store.mm @@ -215,7 +215,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] : "");