Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decoding the data #10

Open
KatkayApps opened this issue May 30, 2014 · 3 comments
Open

decoding the data #10

KatkayApps opened this issue May 30, 2014 · 3 comments

Comments

@KatkayApps
Copy link

Hi, I suck at certificates, ssl encryption, everything related to that.

I have this line working:

DHAppStoreReceipt *receipt = [[DHAppStoreReceipt alloc] initWithURL:receiptURL];

after this line runs almost every of its properties are nil, like for example,
[receipt inAppReceipts]. The only thing that has some data is receipt.applicationVersion and receipt.originalApplicationVersion that have the correct version. Everything else is nil.

I am on mavericks with Xcode 5.1.1 compiling for iOS 7.0, running on a device with iOS 7.1.1.

Even doing this

NSData *ddd = [self receiptDataForProductIdentifier:@"com.myInapp.id"];

for a product identifier I know is on the receipt returns nil.

Do I have to do anything previous or after this line to have these fields populated... and yes the receipt has a lot of in-app purchases and even the app receipt data itself that is not being populated.

@KatkayApps
Copy link
Author

I have discovered the problem. There is an error on your code. This line
DH_ATTRIBUTE_TYPE_BUNDLE_ID = 1

should be
DH_ATTRIBUTE_TYPE_BUNDLE_ID = 2,

or it will never identify the bundleID.

I have also added another line to your enum code that was missing, this one
DH_ATTRIBUTE_TYPE_VOLUME_PURCHASE_RECEIPT_EXPIRATION_DATE = 21,

Your code is fantastic. Thanks.

@KatkayApps KatkayApps reopened this May 31, 2014
@objectiveSee
Copy link

@Lunarbase did you ever find a fix for this?

@KatkayApps
Copy link
Author

my previous post has the answer 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants