Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions RevenueCat/Plugins/iOS/PurchasesUnityHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,9 @@ - (void)purchaseProduct:(NSString *)productIdentifier
response = [NSMutableDictionary new];
response[@"error"] = error.info;
response[@"userCancelled"] = error.info[@"userCancelled"];
[self sendJSONObject:response toMethod:MAKE_PURCHASE];
} else {
response = [NSMutableDictionary dictionaryWithDictionary:responseDictionary];
response[@"userCancelled"] = false;
response[@"userCancelled"] = @NO;
}
[self sendJSONObject:response toMethod:MAKE_PURCHASE];
}];
Expand All @@ -181,7 +180,6 @@ - (void)purchasePackage:(NSString *)packageIdentifier
response = [NSMutableDictionary new];
response[@"error"] = error.info;
response[@"userCancelled"] = error.info[@"userCancelled"];
[self sendJSONObject:response toMethod:MAKE_PURCHASE];
} else {
response = [NSMutableDictionary dictionaryWithDictionary:responseDictionary];
response[@"userCancelled"] = @NO;
Expand Down Expand Up @@ -558,7 +556,7 @@ - (void)purchaseProductWithWinBackOffer:(NSString *)productIdentifier winBackOff
response[@"userCancelled"] = error.info[@"userCancelled"];
} else {
response = [NSMutableDictionary dictionaryWithDictionary:responseDictionary];
response[@"userCancelled"] = false;
response[@"userCancelled"] = @NO;
}
[self sendJSONObject:response toMethod:PURCHASE_PRODUCT_WITH_WIN_BACK_OFFER];
}];
Expand Down Expand Up @@ -593,7 +591,7 @@ - (void)purchasePackageWithWinBackOffer:(NSString *)packageIdentifier presentedO
response[@"userCancelled"] = error.info[@"userCancelled"];
} else {
response = [NSMutableDictionary dictionaryWithDictionary:responseDictionary];
response[@"userCancelled"] = false;
response[@"userCancelled"] = @NO;
}
[self sendJSONObject:response toMethod:PURCHASE_PACKAGE_WITH_WIN_BACK_OFFER];
}];
Expand Down