react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

issue connecting to payment (Android)

Open claudiaTonak opened this issue 1 year ago • 6 comments

This issue is connected with https://github.com/dooboolab-community/react-native-iap/discussions/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, }

claudiaTonak avatar Jun 06 '23 10:06 claudiaTonak

I got same error from v 9.0.1

OHHAKO avatar Jul 06 '23 09:07 OHHAKO

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 avatar Jul 10 '23 10:07 DineshRajput21

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

DineshRajput21 avatar Jul 11 '23 19:07 DineshRajput21

i am also facing this issue in debugging.

eramudeep avatar Jul 28 '23 12:07 eramudeep

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

hermantrym avatar Sep 21 '23 04:09 hermantrym

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

SufianBabri avatar Nov 08 '23 21:11 SufianBabri