Skip to content

Support for Xcode StoreKit Configuration Generated Receipts #66

@jasonmedeiros

Description

@jasonmedeiros

Does MerchantKit support Xcode StoreKit Configurations?

That's where you define your In-App Purchases in a .storekit file and assign it in your Scheme's Options. It allows for quick local testing where Xcode handles transactions and generating receipts. You can even run in the simulator, see transaction states, and more.

When running with a StoreKit Configuration file, validating receipts fails early deep in the parser.

Maybe it's just not supported or there is something obvious that I'm missing.

Specifically, a PayloadValueConversionError.invalidLength error is thrown with this stack trace:

ASN1.consumeLength(from:)
ASN1.Parser._parse(subdata:)
ASN1.Parse()
PKCS7ReceiptDataContainer.content()
LocalReceiptDataDecoder.decode(_:)
LocalReceiptValidator.validate(...)
...

Thanks for making MerchantKit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions