Skip to content

1.5.0

Choose a tag to compare

@aporat aporat released this 14 Dec 23:54

Changed

  • Breaking: google/apiclient requirement moved from ~1.1 to ~2.0; guzzlehttp/guzzle to ~6.2;
    PHP minimum raised to >= 5.6. Thanks to @stanimir-kukudov
    (#35)
  • Breaking: GooglePlay\Validator::__construct() now takes a configured
    \Google_Service_AndroidPublisher instead of an options array with
    client_id/client_secret/refresh_token; the library no longer builds a Google_Client or
    caches access tokens in the temp directory.
  • Breaking: GooglePlay\Validator::validate(), setPurchaseType() and the
    TYPE_PURCHASE/TYPE_SUBSCRIPTION constants were replaced by validatePurchase() returning
    GooglePlay\PurchaseResponse and validateSubscription() returning
    GooglePlay\SubscriptionResponse, instead of raw Google API objects.
  • composer homepage and support fields point to the contributor's fork
    (stanimir-kukudov/store-receipt-validator) in this release.

Added

  • GooglePlay\AbstractResponse (getConsumptionState(), getDeveloperPayload(),
    getDeveloperPayloadElement($key), getKind(), getPurchaseState(), CONSUMPTION_STATE_* and
    PURCHASE_STATE_* constants), GooglePlay\PurchaseResponse::getPurchaseTimeMillis(), and
    GooglePlay\SubscriptionResponse (getAutoRenewing(), getCancelReason(), getCountryCode(),
    getPriceAmountMicros(), getPriceCurrencyCode(), getStartTimeMillis()).

Removed

  • Breaking: GooglePlay\AbstractValidator and GooglePlay\ServiceAccountValidator (added in
    1.4.0) were removed; service-account auth is now done by configuring the Google_Client yourself
    and passing the publisher service in.

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