Repository navigation
1.1.0
Added
- New
Amazon\Validatorclass for Amazon's Receipt Verification Service: constants
ENDPOINT_PRODUCTION(https://appstore-sdk.amazon.com/version/1.0/verifyReceiptId/) and
ENDPOINT_SANDBOX(http://localhost:8080/RVSSandbox/);__construct($endpoint = self::ENDPOINT_PRODUCTION)throwsRunTimeExceptionfor any other endpoint; chainable
setUserId(),setReceiptId(),setDeveloperSecret(); andvalidate(), which GETs
developer/{secret}/user/{userId}/receiptId/{receiptId}and returns anAmazon\Response(HTTP
errors are not thrown; they surface as the result code). - New
Amazon\Responseclass whose result code is the HTTP status: constantsRESULT_OK(200),
RESULT_INVALID_RECEIPT(400),RESULT_INVALID_DEVELOPER_SECRET(496),RESULT_INVALID_USER_ID
(497),RESULT_INTERNAL_ERROR(500); methods__construct($httpStatusCode = 200, $jsonResponse = null),getResultCode(),getReceipt(),isValid(),parseJsonResponse().
Notes written from the code diff for this release; see CHANGELOG.md.