1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-04 19:21:46 +00:00

Updated purchase receipt suitable for sending to apple verification server

(cherry picked from commit bd71925726)
This commit is contained in:
Poq Xert
2020-06-24 17:34:20 +10:00
committed by Rémi Verschelde
parent 3c9fc891c8
commit 4c0b077faa

View File

@@ -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] : "");