Skip to content

Fix incorrect replacementModeConstant mapping in OpenIapModule #71

@benjdreier

Description

@benjdreier
Original Content

https://github.com/hyodotdev/openiap/blob/d01b2260af66dedc06ffd37cc7ad758c93528826/packages/google/openiap/src/play/java/dev/hyo/openiap/OpenIapModule.kt#L1608C12-L1617C14

The map defining replacementModeConstant seems to be referencing this incorrect mapping (confusingly, different enum values apply to that different class). Instead, it should implement this correct mapping for the BillingFlowParams.ProductDetailsParams.SubscriptionProductReplacementParams class

(Hey @hyochan — I actually tried to open my own PR for this one, in a fix/* branch but I don't have access rights to push! Let me know if you'd be interested in reviewing some PRs for me as I keep surfacing these issues. Your response time has been super quick I really appreciate the work you're doing on this!)


Description

The replacementModeConstant map in the OpenIapModule is currently referencing an incorrect Android Billing API mapping.

Issue Details

Current (Incorrect) Mapping:

Correct Mapping:

Additional Note

I attempted to create a PR for this fix but don't have push access to the repository. I'd appreciate the opportunity to contribute PRs if you're open to it. Thank you for the quick response times on issues—I really appreciate your work on this project!


🤖 Formatted by gitdog.dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions