Repository navigation
1.5.0
Changed
- Breaking:
google/apiclientrequirement moved from ~1.1 to ~2.0;guzzlehttp/guzzleto ~6.2;
PHP minimum raised to >= 5.6. Thanks to @stanimir-kukudov
(#35) - Breaking:
GooglePlay\Validator::__construct()now takes a configured
\Google_Service_AndroidPublisherinstead of an options array with
client_id/client_secret/refresh_token; the library no longer builds aGoogle_Clientor
caches access tokens in the temp directory. - Breaking:
GooglePlay\Validator::validate(),setPurchaseType()and the
TYPE_PURCHASE/TYPE_SUBSCRIPTIONconstants were replaced byvalidatePurchase()returning
GooglePlay\PurchaseResponseandvalidateSubscription()returning
GooglePlay\SubscriptionResponse, instead of raw Google API objects. - composer
homepageandsupportfields 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\AbstractValidatorandGooglePlay\ServiceAccountValidator(added in
1.4.0) were removed; service-account auth is now done by configuring theGoogle_Clientyourself
and passing the publisher service in.
Notes written from the code diff for this release; see CHANGELOG.md.