diff --git a/RevenueCat/Plugins/iOS/PurchasesUnityHelper.m b/RevenueCat/Plugins/iOS/PurchasesUnityHelper.m index 89142bc7..1b7a0fa4 100644 --- a/RevenueCat/Plugins/iOS/PurchasesUnityHelper.m +++ b/RevenueCat/Plugins/iOS/PurchasesUnityHelper.m @@ -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]; }]; @@ -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; @@ -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]; }]; @@ -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]; }];