Skip to content

2.0.0

Choose a tag to compare

@aporat aporat released this 20 Apr 22:40

Added

  • iTunes\PurchaseItem class with getQuantity(), getProductId(), getWebOrderLineItemId(),
    getTransactionId(), getOriginalTransactionId(), getPurchaseDate(),
    getOriginalPurchaseDate(), getExpiresDate(), getCancellationDate() (dates as Carbon) and
    getRawResponse(). The raw-data accessor was originally named getData() and read an undefined
    property; fixed before release. Thanks to @tehmaestro
    (#41)
  • Amazon\PurchaseItem class with getQuantity(), getProductId(), getTransactionId(),
    getPurchaseDate(), getCancellationDate() and getRawResponse(), and
    Amazon\Response::getPurchases() returning one such item.
  • GooglePlay\Validator::__construct(\Google_Service_AndroidPublisher $service, $validationModePurchase = true), setValidationModePurchase(), and validate() which dispatches
    to validatePurchase() or validateSubscription(). Thanks to @stanimir-kukudov
    (#39)
  • GooglePlay\Validator::getPublisherService() exposes the underlying
    \Google_Service_AndroidPublisher for other calls (voided purchases, refunds, revokes). Thanks to
    @Stafox (#49)
  • GooglePlay\SubscriptionResponse::getExpiryTimeMillis(), getUserCancellationTimeMillis(),
    getPaymentState(), and GooglePlay\AbstractResponse::getRawResponse(). Thanks to
    @stanimir-kukudov and @Stafox (#39,
    #49)

Changed

  • Breaking: iTunes\Response::getPurchases() returns iTunes\PurchaseItem[] instead of raw
    in_app arrays (both iOS 7+ and legacy receipt formats).
  • Breaking: iTunes\Response::parseJsonResponse() no longer takes an argument; the JSON array
    is passed to the constructor only.
  • Breaking: GooglePlay\AbstractResponse::getConsumptionState(), getDeveloperPayloadElement()
    and getPurchaseState() moved to GooglePlay\PurchaseResponse; they are no longer available on
    SubscriptionResponse. AbstractResponse::getDeveloperPayload() now returns the Google object's
    raw payload string, while PurchaseResponse::getDeveloperPayload() keeps returning the
    JSON-decoded array. (#39)
  • GooglePlay\SubscriptionResponse getters now call the
    Google_Service_AndroidPublisher_SubscriptionPurchase accessor methods, and getAutoRenewing()
    is cast to bool. (#49)
  • composer: added nesbot/carbon ~1; PHP minimum lowered back to >= 5.5 (1.5.0 had raised it to
    5.6); homepage and support restored to the aporat repository (1.5.0 pointed them at a fork).
    (#49)

Deprecated

  • GooglePlay\SubscriptionResponse::getExpiresDate() is deprecated in favour of
    getExpiryTimeMillis(); it was introduced and deprecated within this release.
    (#49)

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