Merge pull request #39791 from PoqXert/ios

[iOS] Replace purchase receipt
This commit is contained in:
Rémi Verschelde 2020-06-24 15:15:40 +02:00 committed by GitHub
commit 1575820207
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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