mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +08:00
IAP: Exit after an error
Do not try to consume the purchase
This commit is contained in:
@ -157,6 +157,7 @@ class _PurchaseWidgetState extends State<PurchaseWidget> {
|
||||
});
|
||||
if (purchaseDetails.status == PurchaseStatus.error) {
|
||||
_handleIAPError(purchaseDetails.error);
|
||||
return;
|
||||
} else if (purchaseDetails.status == PurchaseStatus.purchased) {
|
||||
var subStatus = await verifyPurchase(purchaseDetails);
|
||||
if (subStatus.isPro) {
|
||||
|
Reference in New Issue
Block a user