I’m following the supplied examples and was able to list packages and buy one product. Although the process do not reach the end because of a raised error, but the error is very general, and not clear at all. Also it does not have any error code as it was supposed to according to the docs here (https://docs.revenuecat.com/docs/errors#android-errors).
My Code:
try {
const offerings = await Purchases.getOfferings();
if (offerings.current.lifetime !== null) {
const currentOffering = offerings.current.lifetime;
const { purchaserInfo, productIdentifier } = await Purchases.purchasePackage(currentOffering);
if (typeof purchaserInfo.entitlements.activevENTITLEMENT_ID] !== 'undefined') {
console.log("Purchase Success");
}
}
} catch (e) {
if (!e.userCancelled) {
console.log(e);
}
}
Let me be clear that the native android purchase popup is correctly shown int the device (real device, not simulator), and the process is succeed by Google.
The error object returned is simply this:
oError: There is an issue with your configuration. Check the underlying error for more details.]
Is this object not missing an error code?
Thank you.