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

issue connecting to payment (Android) #2456

Open
claudiaTonak opened this issue Jun 6, 2023 · 6 comments
Open

issue connecting to payment (Android) #2456

claudiaTonak opened this issue Jun 6, 2023 · 6 comments

Comments

@claudiaTonak
Copy link

This issue is connected with #2276 , this is NOT resolved. I passed an object!

I try to request a subscription or a single purchase, Android.
Both calls got the same error message:
{"message":"Google is indicating that we have some issue connecting to payment.","debugMessage":"Please ensure the specific App version has been published.","code":"E_DEVELOPER_ERROR","responseCode":5}

react-native-iap version 12.8.1
react-native 0.71.3

Calls:

await IAP.requestSubscription({
  sku, 
  ...(offerToken && {
    subscriptionOffers: [{ sku, offerToken }],
  }),
});

await IAP.requestPurchase(
Platform.select({
ios: { sku },
android: { skus: [sku] },
})
);
the sku and offerToken are correct.

I also tried:

await IAP.requestPurchase(
  Platform.select({
    ios: { sku },
    android: {
      skus: [sku],
      obfuscatedProfileIdAndroid: editionName,
      obfuscatedAccountIdAndroid: curPublDate,
    },
  })
);

without success, same failure.

With react-native-iap 7.5.6 and react-native 17.0.2 the requestPurchase and requestSubscription calls are working just fine.

  await IAP.requestSubscription(sku, false, undefined, undefined, editionName, curPublDate);
  await IAP.requestPurchase(sku, false, editionName, curPublDate);

Any ideas? Can anybody help me please?

Answer was : Look at the migration docs. You should be passing an object to those methods
My answer: This is not the solution. I passed an object. Please take a closer look.
Android: { skus: [sku],
obfuscatedProfileIdAndroid: editionName,
obfuscatedAccountIdAndroid: curPublDate,
}

@OHHAKO
Copy link

OHHAKO commented Jul 6, 2023

I got same error from v 9.0.1

@DineshRajput21
Copy link

I'm also facing the same issue in

react-native-iap version 12.8.1
react-native 0.71.3

Previously it was working fine with

react-native-iap 7.5.6

@DineshRajput21
Copy link

DineshRajput21 commented Jul 11, 2023

@OHHAKO any update on this issue? Are you able to fix this issue by any chance?

@eramudeep
Copy link

i am also facing this issue in debugging.

@hermantrym
Copy link

I'm also facing the same issue in

react-native-iap version 12.8.1
react-native 0.71.3

Previously it was working fine with

react-native-iap 7.5.6

Check out this link: https://github.com/dooboolab-community/react-native-iap/blob/main/IapExample/src/screens/Products.tsx

@SufianBabri
Copy link
Contributor

When finishing the transaction in the case of Subscription, isConsumable: false should be passed.
Please see my detailed answer here.

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

6 participants