From 09b7e9f0ece9d618b5421b3c33667dd2f2b0079b Mon Sep 17 00:00:00 2001 From: Harrison Date: Tue, 31 Oct 2023 13:43:44 -0700 Subject: [PATCH] fixed issue where subscription_offer_details were null --- .../googleplaybilling/utils/GooglePlayBillingUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/godot-google-play-billing/src/main/java/org/godotengine/godot/plugin/googleplaybilling/utils/GooglePlayBillingUtils.java b/godot-google-play-billing/src/main/java/org/godotengine/godot/plugin/googleplaybilling/utils/GooglePlayBillingUtils.java index d4b7d58..4f4b493 100644 --- a/godot-google-play-billing/src/main/java/org/godotengine/godot/plugin/googleplaybilling/utils/GooglePlayBillingUtils.java +++ b/godot-google-play-billing/src/main/java/org/godotengine/godot/plugin/googleplaybilling/utils/GooglePlayBillingUtils.java @@ -97,12 +97,14 @@ public static Dictionary convertProductDetailsToDictionary(ProductDetails detail pricingPhasesDictionaryList.add(pricingPhasesDictionary); } - subscriptionOfferDetailsDictionary.put("pricing_phases", pricingPhasesDictionaryList); + Object[] pricingPhasesArray = pricingPhasesDictionaryList.toArray(); + subscriptionOfferDetailsDictionary.put("pricing_phases", pricingPhasesArray); subscriptionOfferDetailsDictionaryList.add(subscriptionOfferDetailsDictionary); } - dictionary.put("subscription_offer_details", subscriptionOfferDetailsDictionaryList); + Object[] subscriptionOfferDetailsArray = subscriptionOfferDetailsDictionaryList.toArray(); + dictionary.put("subscription_offer_details", subscriptionOfferDetailsArray); } return dictionary;