Repository navigation
4.0.0
Changed
- Breaking: Minimum PHP version raised from
^7.1to^7.2.5. Thanks to @leemcd56
(#125) - Guzzle 7 is now supported:
guzzlehttp/guzzleconstraint changed from^6.3to^6.3|^7.0.
(#125) - Breaking:
iTunes\Validator::ENDPOINT_PRODUCTIONandENDPOINT_SANDBOXno longer include the
/verifyReceiptpath (nowhttps://buy.itunes.apple.comandhttps://sandbox.itunes.apple.com);
the path is passed on the POST request instead (needed because Guzzle 7 rejects anullrequest
URI). Code that comparesgetEndpoint()against the old full URLs or passes the full URL to the
constructor will break. - Breaking:
iTunes\Validator::setReceiptData()andsetSharedSecret()now declare?string
parameter types. - Breaking:
Amazon\Validator::setUserId(),setReceiptId()andsetDeveloperSecret()now
declare?stringparameter types, andgetDeveloperSecret()declares a?stringreturn type. - Breaking:
Amazon\PurchaseItemgetters gained return types:getRawResponse(): ?array,
getQuantity(): int,getProductId(): string,getTransactionId(): string,getPurchaseDate(): Carbon,getCancellationDate(): ?Carbon,getRenewalDate(): ?Carbon. - Breaking: Protected properties in
Amazon\Validator,Amazon\Responseand
Amazon\PurchaseItemlost their leading underscore (e.g.$_endpointis now$endpoint,
$_responseis now$raw_data); subclasses referencing the old names must be updated. The unused
Amazon\Validator::$_product_idproperty was removed. - Note: the original release notes said "PHP 7.2+ is now required"; the actual composer constraint
is^7.2.5. They did not mention the endpoint-constant or type-hint changes.
Fixed
- Amazon endpoint constants lost their trailing slash and the request path gained a leading slash in
this release, which broke Amazon validation; see 4.0.1.
Notes written from the code diff for this release; see CHANGELOG.md.