X-Git-Url: https://git.cweiske.de/stouyapi.git/blobdiff_plain/5ef938a8037f5aadd9c8c6c5f5fba19daca313e8..f19759be619ef2263f7724572ddfde14da47ab9a:/bin/import-game-data.php diff --git a/bin/import-game-data.php b/bin/import-game-data.php index e962638..0227b45 100755 --- a/bin/import-game-data.php +++ b/bin/import-game-data.php @@ -380,12 +380,13 @@ function buildProduct($product) return null; } return [ - 'type' => 'entitlement', + 'type' => $product->type ?? 'entitlement', 'identifier' => $product->identifier, 'name' => $product->name, 'description' => $product->description ?? '', 'localPrice' => $product->localPrice, 'originalPrice' => $product->originalPrice, + 'priceInCents' => $product->originalPrice * 100, 'percentOff' => 0, 'currency' => $product->currency, ];