-
-
Notifications
You must be signed in to change notification settings - Fork 638
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
[Android] acknowledgePurchaseAndroid() Google is indicating that we have some issue connecting to payment. #721
Comments
If |
@hyochan well, it looks like I don't have it but I have no clue where I can get the correct syntax. |
Try to find the line |
Well, I didn't have it, I only had implementation project(':react-native-iap') Do I need both implementations ? implementation 'com.android.billingclient:billing:2.0.3'
implementation project(':react-native-iap') I stil have the same error |
@MeisterTea I wanted you to check the version of the |
oh, my bad... Yes, it does have the right version implementation 'com.android.billingclient:billing:2.0.3' Any idea ? |
@MeisterTea I think I found useful LINK for you. |
@MeisterTea Was this helpful? |
Well, I still have the error :
, I have some questions:
EDIT: It's all the same with the sample project of react-native-iap. I can buy the subscription but I am still getting the error 5 |
having the same issue. any solution for this? |
Yes, it's to due to acknowledging a PENDING payment. |
I get the same issue also for payments which have the state |
I confirm this. I never get an error when the Edit: Yet the purchase is still acknowledged. in other words, there is an error, but it's still working. |
I had the same problem and I realized that problem was that the PurchaseToken was already confirmed. So I fix the problem controlling the call to So i had to check if purchases[0].isAcknowledgedAndroid from Hope it helps. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
I have had the same error message recently. So I'd say this should stay active. |
I'm getting the same error with |
@creativemind1 What version are you using? |
I'm using |
Same error, but on getProducts |
Same error, but on consumeProduct. Error when making a subscription: Error when buying a product: react-native: 0.61 |
I think if you add the email address in the test users of.google play
settings you will nit see tgat issue
…On Sat, Jun 6, 2020, 8:41 PM rafaeelrf ***@***.***> wrote:
Same error, but in consumeProduct:
Error: Google is indicating that we have some issue connecting to payment.
at Object.fn [as consumeProduct] (VM4 index.bundle:2143)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#721 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABH54CL5FLAY4C7CTL2V3V3RVJMA7ANCNFSM4IX5EJQA>
.
|
I already added, but the problem was not solved |
If I remember right, you can't do it client side when you are on test servers because there is a slight delay between issuing the payment and server validation. |
Hi I am getting the same error while RNIap.acknowledgePurchaseAndroid(purchase.purchaseToken); API. Can someone please help |
me too having this issue using the latest version and test card is used |
Same problem here, calling RNIap.finishTransaction(purchase, true) from my purchaseUpdatedListener that gets called as it should just after my RNIap.requestSubscription. This leads to the error. After 5 min I get the cancellation mail "This test purchase was canceled because it was not confirmed" from Google. Of course, I am using a test account, but that ought to be ok. |
@MeisterTea what did you do in the backend, did you find out what the equivalent google request of RNIap.finishTransaction(purchase, true) was? Can you share some code snippet or other info, so the rest of us can use that solution until the plugin works again? |
my issue was, I was calling finishtransaction 2 times. when I removed it, worked fine |
I got it working: I just made these specific lines for Android, but the need to do so was not very apparent from the documentation. Now it works both on Android and iOS: |
i dont know if this working or not for you (this code for consumeProduct):
I need to finish the transaction at first then revoke the purchase by hitting the consumePurchaseAndroid() as the code above. Hope it helps. |
That seems to work for me too, i'm using v5.0.0 |
Getting same when:
|
purchase error Error: Google is indicating that we have some issue connecting to payment. |
I was getting this error and I added |
I used hooks given in react-native-iap library, Then I had to use above solution like below,
|
It doesn't work. |
Getting same error. Is there any solution? [Error: Google is indicating that we have some issue connecting to payment.] Tested on real Android device. in debug-release modes |
https://github.com/dooboolab-community/react-native-iap/blob/aab948226fd075c759022503af45286262e8ff97/IapExample/src/screens/Subscriptions.tsx#L68C12-L68C32 #2578 (comment) |
Version of react-native-iap > 3.4.12
Version of react-native > 0.58.3
Platforms you faced the error > Android
Actual behavior
I have got a
Google is indicating that we have some issue connecting to payment.
errorIn logcat I get a
E/DoobooUtils: Error Code : 5
I was using version 2.5.5 previously, it was working fine.
The only thing not working there is the acknowledgePurchaseAndroid call
Tested environment > Real Device
Here is my code :
The text was updated successfully, but these errors were encountered: