Testing in Sandbox
My config seems to be correct,
I can buy the in app purchase and it goes through to revenue cat
The issue is when I call
const handlePurchase = async (pack) => {
try {
console.log("Initiating purchase for package: " + pack.product.identifier);
const {customerInfo} = await Purchases.purchasePackage(pack);
console.log("Purchase completed successfully");
} catch (error) {
if (error && error.userCancelled) {
console.log("Purchase cancelled by user");
} else {
console.error("Error during purchase:", error.message);
}
}
};
Nothing executes after customerInfo, not even the log statement. it just hangs indefinetly
please help as this is the blocker to my app going live. Thank you.