Skip to content

1.1.0

Choose a tag to compare

@aporat aporat released this 19 Apr 15:27

Added

  • New Amazon\Validator class 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) throws RunTimeException for any other endpoint; chainable
    setUserId(), setReceiptId(), setDeveloperSecret(); and validate(), which GETs
    developer/{secret}/user/{userId}/receiptId/{receiptId} and returns an Amazon\Response (HTTP
    errors are not thrown; they surface as the result code).
  • New Amazon\Response class whose result code is the HTTP status: constants RESULT_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.