Replies: 1 comment
-
Does it behave the same in a none sandbox environment? I found the same issue and had to use the purchaseUpdatedListener to retrieve the purchase details instead of the hooks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is no problem on Android, but on iOS, the currentPurchase value may not come in from the useIAP hook after completing the purchase.
ex)
const {
getProducts,
currentPurchase,
currentPurchaseError,
finishTransaction,
requestPurchase,
} = useIAP();
useEffect(() => {
if (currentPurchase) {
console.log(currentPurchase); // -> Sometimes it doesn't work on iOS
}
}, [currentPurchase]);
Is there anything I'm missing?
Additionally, I found a situation where receipt details were not sent to the callback if user used another payment method instead of paying with a credit card.
Beta Was this translation helpful? Give feedback.
All reactions