mirror of
https://github.com/defold/extension-iap
synced 2025-06-27 10:27:46 +02:00
parent
1c017cf4ed
commit
38656e973c
@ -119,8 +119,8 @@ static void IAP_FreeTransaction(IAPTransaction* transaction)
|
|||||||
|
|
||||||
IAPProduct product = {0};
|
IAPProduct product = {0};
|
||||||
product.ident = strdup([p.productIdentifier UTF8String]);
|
product.ident = strdup([p.productIdentifier UTF8String]);
|
||||||
product.title = strdup([p.localizedTitle UTF8String]);
|
product.title = p.localizedTitle ? strdup([p.localizedTitle UTF8String]) : strdup([p.productIdentifier UTF8String]);
|
||||||
product.description = strdup([p.localizedDescription UTF8String]);
|
product.description = p.localizedDescription ? strdup([p.localizedDescription UTF8String]) : "";
|
||||||
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