react-native-iap
react-native-iap copied to clipboard
issue connecting to payment (Android)
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, }
I got same error from v 9.0.1
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
@OHHAKO any update on this issue? Are you able to fix this issue by any chance?
i am also facing this issue in debugging.
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
When finishing the transaction in the case of Subscription, isConsumable: false
should be passed.
Please see my detailed answer here.