You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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