I encountered an issue after incorporating Google Play subscription in my React Native project using the package
"react-native-iap": "12.10.4",
.
The error message reads as follows:
E_DEVELOPER_ERROR Google is indicating that we have some issue connecting to payment.
After facing a number of challenges with this particular package, I was able to resolve them up to the point where I encountered the aforementioned error while attempting to subscribe using the following code:
async subscribe(sku: string, offerToken: string) {
let res = null;
const init = await initConnection();
console.log(init);
try {
res = await requestSubscription({
purchaseTokenAndroid: sku,
subscriptionOffers: [{sku, offerToken}],
});
} catch (err) {
console.warn(err.code, err.message);
}
return res;
}
Although the 'sku' and 'offerToken' values are accurate, running this code still results in the specified error message.
I am currently using an internal testing release and have attempted adding my Google account to both internal testers and License testing to no avail.