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

Google is indicating that we have some issue connecting to payment #2184

Closed
Abdulahaditsol opened this issue Jan 4, 2023 · 6 comments
Closed

Comments

@Abdulahaditsol
Copy link

Abdulahaditsol commented Jan 4, 2023

Please use the Discussion board if you want to get some help. Please use issues to report bugs.

Description
I am getting error in RNIAP finishtransaction in android platform while testing subscription purchase purchase.
[Error: Google is indicating that we have some issue connecting to payment.]
it was working fine before when i was using "react-native-iap": "^4.4.0" but later after playstore warn regarding billing library I updated RNIAP to version 11 following this document https://react-native-iap.dooboolab.com/docs/get-started

Environment:

  • react-native-iap:^11.0.7
  • react-native: 0.63.3
  • Platforms Android

[Optional] Additional Context
our users is effecting badly by this issue anyone have suggestion please share me.
Thanks

@andresesfm
Copy link
Collaborator

Please follow the migration guides

@Abdulahaditsol
Copy link
Author

Hi andresesfm I followed the whole guide and our ios app is working well only affects the android app.

@andresesfm
Copy link
Collaborator

@dimaischenko
Copy link

dimaischenko commented Feb 15, 2023

Hi andresesfm I followed the whole guide and our ios app is working well only affects the android app.

@Abdulahaditsol I guess I figured it out. For Android subscriptions, you need to pass isConsumable: false

finishTransaction({purchase: purchase, isConsumable: false})

And vice versa for iOS

finishTransaction({purchase: purchase, isConsumable: true})

I'll be checking things out more carefully and will be glad if someone else will check and write back. Actually the manual doesn't say it clearly and there is only a mention that for iOS subscription are consumable products.

@andresesfm And also in this example https://github.com/dooboolab/react-native-iap/blob/main/IapExample/src/screens/Subscriptions.tsx it is explicitly and platform-independent stated that the subscription is consumable , probably needs to be fixed

@dimaischenko
Copy link

It seems that for iOS subscriptions are non-consumables too, then you should pass isConsumable: false in finishTransaction for iOS too. I suspect it doesn't play a role in the case of iOS, which is why it worked in previous example. But we need to carefully review the manuals, for example at this page https://react-native-iap.dooboolab.com/docs/guides/purchases I found:

Subscribable products can be purchased just like consumable products and users can cancel subscriptions by using the iOS System Settings.

Which is a bit misleading as for me

@SufianBabri
Copy link
Contributor

@dimaischenko thanks for your comment. It helped me solve the issue.

I have added a bit more information about it in this comment. Hopefully, it will clarify it further for others.

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

4 participants