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

Some proration mode is not working when upgrading and downgrading #2729

Open
jimmyrheereckon opened this issue Apr 26, 2024 · 1 comment
Open

Comments

@jimmyrheereckon
Copy link

jimmyrheereckon commented Apr 26, 2024

Description

Hi,

First of all, thank you very much for providing this good library so we can work with In-app-purchase for both Android/Apple conveniently.

I am writing because I have some issue while selecting a proration mode to upgrade / downgrade subscription using base plan.

I have set up 3 base plans.

I have tried to use proration mode DEFERRED for downgrading subscription, however, Android is giving me an error.
Also, I am getting the same error when I am using IMMEDIATE_AND_CHARGE_PRORATED_PRICE for upgrading.
However, other proration modes work.

Is this happening because BillingFlowParams.ProrationMode is deprecated?

Would it work if react-native-iap uses BillingFlowParams.SubscriptionUpdateParams.ReplacementMode instead?

Expected Behavior

Show Android upgrade/downgrade modal with subscription details.

Screenshots
image

Environment:

  • react-native-iap: 12.10.7
  • react-native: 0.71.1
  • Platforms (iOS, Android, emulator, simulator, device): emulator, Android device (Samsung S22)

To Reproduce
Steps to reproduce the behavior:

  1. Use ProrationModesAndroid.DEFERRED when downgrading

  2. Use ProrationModesAndroid.IMMEDIATE_AND_CHARGE_PRORATED_PRICE when upgrading

  3. Error below is shown,

 WARN  {"code": "E_DEVELOPER_ERROR", "debugMessage": "Requested replacement mode is not supported for this request", "message": "Google is indicating that we have some issue connecting to payment.", "responseCode": 5}
 LOG  Error requesting subscription:  [Error: Google is indicating that we have some issue connecting to payment.]

Thanks.

@ronakzestbrains
Copy link

I found the issue getting error like below image when i define prorationModeAndroid: ProrationModesAndroid.IMMEDIATE_WITH_TIME_PRORATION in my case i define anything getting that error.

Screenshot 2024-05-22 at 12 15 54 PM

Can you please help me with that issue, I have install the latest version of "react-native-iap": "^12.13.1", library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants