Skip to content

3.5.0

Choose a tag to compare

@Stafox Stafox released this 03 Aug 16:34
b88a5fb

Added

  • GooglePlay\Acknowledger constructor accepts a fifth $strategy argument with new constants
    ACKNOWLEDGE_STRATEGY_EXPLICIT (default; calls acknowledge unconditionally, as before) and
    ACKNOWLEDGE_STRATEGY_IMPLICIT (first fetches the purchase and only acknowledges if
    acknowledgementState is not already done). An unknown strategy throws
    ReceiptValidator\RunTimeException. Thanks to @passions-app
    (#110)

Changed

  • Breaking: robrichards/xmlseclibs constraint tightened from ^2.0|^3.0 to ^3.0.4 (drops
    xmlseclibs 2.x) to clear security-advisory warnings. Other constraints were rewritten from ~ to
    ^ form (php: ^7.1, guzzlehttp/guzzle: ^6.3, google/apiclient: ^2.0) with no effective
    change.
  • GooglePlay\Acknowledger::acknowledge() now re-throws wrapped exceptions with $e->getCode() as
    the message instead of $e->getMessage(), so the original error text is lost (looks
    unintentional). (#110)
  • Note: the original release notes credit @Orkin; the merge commit shows the PR came from the
    passions-app fork (author Florent Blaison).

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