Discussions
Ios Fraud purchase Error using Flutter SDK
28 days ago by Kam Dev
I have a Flutter App in which I am using the Qonversion SDK for in App Subscription. I have made the required settings for the iOS. But when hit subscribe it does not open the purchase pop up, it returns me this error in Test Flight.
1: Additional Message: Internal Error Code: 10008
2: Error Code: FraudPurchase
3: Error Message: not_authenticated
I am unable to find any possible solution from the documents.
This is my code for making a purchase:
return {
"paymentStatus": true,
"qEntitlement": qEntitlement,
"reasonPhrase": "Payment Success"
};
} else {
dev.log(
"[QonversionService] Purchase successful but Entitlement is Empty!!!",
);
return {
"paymentStatus": true,
"qEntitlement": null,
"reasonPhrase":
"Payment Success but Nothing Returned in entitlement!!!"
};
}
} on QPurchaseException catch (e) {
if (e.isUserCancelled) {
dev.log("[QonversionService] Purchase Cancelled by the User");
return {
"paymentStatus": false,
"qEntitlement": null,
"reasonPhrase":
"Inside QPurchaseException: Purchase Cancelled by the User\n${e.message}"
};
} else {
dev.log(
"[QonversionService] Purchase Exception: \nError Code: ${e.code}\nMessage: ${e.message}\nAdditional Message: ${e.additionalMessage}",
);
return {
"paymentStatus": false,
"qEntitlement": null,
"reasonPhrase":
"Inside QPurchaseException: \nError Code: ${e.code}\nMessage: ${e.message}\nAdditional Message: ${e.additionalMessage}"
};
}
} catch (ex) {
dev.log("[QonversionService] Unexpected error during purchase: $ex");
return {
"paymentStatus": false,
"qEntitlement": null,
"reasonPhrase": "Inside Catch: $ex"
};
}