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

fetchReceipt: replace String with Data #284

Merged
merged 2 commits into from
Oct 12, 2017

Conversation

bizz84
Copy link
Owner

@bizz84 bizz84 commented Oct 11, 2017

The receipt read from Bundle.main.appStoreReceiptURL is a Data object.

Maybe it makes sense to return it as such and let clients convert it into a string if needed (for example when uploading as payload to a server):

let receipt = receiptData.base64EncodedString(options: [])

Also, local receipt verification may access the bytes from Data rather than String.

… rather than String.

Validators can then convert with receiptData.base64EncodedString(options: [])
@bizz84 bizz84 merged commit 71f4eb8 into develop Oct 12, 2017
@bizz84 bizz84 deleted the feature/fetchReceipt-replace-string-with-data branch October 12, 2017 06:43
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

Successfully merging this pull request may close these issues.

1 participant