Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes bug subscription_offer_details=null #58

Open
wants to merge 1 commit into
base: billing-v5
Choose a base branch
from

Conversation

PickleJesus123
Copy link

@PickleJesus123 PickleJesus123 commented Oct 31, 2023

This fixes an issue with subscriptions in the billing-v5 branch where subscription_offer_details were always coming back "null" when accessed within Godot. This was preventing me from getting "formatted price strings" etc, for my subscriptions.

The problem I identified is that instances of ArrayList<Dictionary> generated during convertProductDetailsToDictionary() in GooglePlayBillingUtils.java were getting "nulled" as the data was passed to Godot through emit_signal(). I converted all ArrayList<Dictionary> to Object[] before dictionary.put() is called, and it is no longer being nulled. With this fix, you can read subscription_offer_details successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants