Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
fix the purchaseSku that was using old identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopifferi committed Feb 24, 2022
1 parent d13d329 commit 8273bb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/GlassfyGlue.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ + (void)purchaseSku:(NSDictionary *_Nonnull)sku withCompletion:(GlassfyGlueCompl
block(nil,[GlassfyGlue errorWithCode:-42 description:@"invalid parameter"]);
return;
}
NSString *identifier = sku[@"identifier"];
if (identifier == nil) {
NSString *skuId = sku[@"skuId"];
if (skuId == nil) {
block(nil,[GlassfyGlue errorWithCode:-42 description:@"invalid parameter"]);
return;
}
[Glassfy skuWithId:identifier completion:^(GYSku *sku , NSError *error ) {
[Glassfy skuWithId:skuId completion:^(GYSku *sku , NSError *error ) {
if (error != nil) {
block(nil,error);
return;
Expand Down

0 comments on commit 8273bb3

Please sign in to comment.