Skip to content

1.2.0

Choose a tag to compare

@aporat aporat released this 15 Oct 20:05

Added

  • New WindowsStore\Validator class with __construct(CacheInterface $cache = null) and
    validate($receipt), which returns bool. It parses the receipt XML, downloads the Microsoft
    signing certificate named by the receipt's CertificateId from go.microsoft.com, and verifies
    the XML signature with robrichards/xmlseclibs; it throws ReceiptValidator\RunTimeException on
    invalid XML, a missing CertificateId, or a missing signature/key. Thanks to @MaartenStaa
    (#20)
  • New WindowsStore\CacheInterface (get($key), put($key, $value, $minutes)) so callers can
    cache downloaded certificates; when a cache is supplied, certificates are stored for 3600 minutes
    under store-receipt-validate.windowsstore.<CertificateId>.
    (#20)

Changed

  • composer: new dependency robrichards/xmlseclibs: ^2.0.
    (#20)

Notes written from the code diff for this release; see CHANGELOG.md.