mirror of
https://github.com/defold/extension-iap
synced 2025-06-27 10:27:46 +02:00
parent
ecbc807978
commit
a48ca394bb
@ -125,14 +125,14 @@ static void IAP_FreeTransaction(IAPTransaction* transaction)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
dmLogWarning("Product %s has no localizedTitle", [p.productIdentifier UTF8String]);
|
dmLogWarning("Product %s has no localizedTitle", [p.productIdentifier UTF8String]);
|
||||||
product.title = "";
|
product.title = strdup("");
|
||||||
}
|
}
|
||||||
if (p.localizedDescription) {
|
if (p.localizedDescription) {
|
||||||
product.description = strdup([p.localizedDescription UTF8String]);
|
product.description = strdup([p.localizedDescription UTF8String]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
dmLogWarning("Product %s has no localizedDescription", [p.productIdentifier UTF8String]);
|
dmLogWarning("Product %s has no localizedDescription", [p.productIdentifier UTF8String]);
|
||||||
product.description = "";
|
product.description = strdup("");
|
||||||
}
|
}
|
||||||
product.currency_code = strdup([[p.priceLocale objectForKey:NSLocaleCurrencyCode] UTF8String]);
|
product.currency_code = strdup([[p.priceLocale objectForKey:NSLocaleCurrencyCode] UTF8String]);
|
||||||
product.price = p.price.floatValue;
|
product.price = p.price.floatValue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user