Module: Venice

Defined in:
lib/venice.rb,
lib/venice/client.rb,
lib/venice/receipt.rb

Defined Under Namespace

Classes: Client, InvalidJSONObjectError, MalformedReceiptDataError, ProductionReceiptSentToSandboxError, Receipt, ReceiptVerificationAuthenticationError, ReceiptVerificationError, ReceiptVerificationServerOfflineError, SandboxReceiptSentToProductionError, SharedSecretMismatchError, ValidReceiptExpiredSubscriptionError

Constant Summary collapse

VERSION =
"0.0.1"
ITUNES_PRODUCTION_RECEIPT_VERIFICATION_ENDPOINT =
"https://buy.itunes.apple.com/verifyReceipt"
ITUNES_DEVELOPMENT_RECEIPT_VERIFICATION_ENDPOINT =
"https://sandbox.itunes.apple.com/verifyReceipt"
RECEIPT_VERIFICATION_ERRORS_BY_STATUS_CODE =
{
  21000 => InvalidJSONObjectError,
  21002 => MalformedReceiptDataError,
  21003 => ReceiptVerificationAuthenticationError,
  21004 => SharedSecretMismatchError,
  21005 => ReceiptVerificationServerOfflineError,
  21006 => ValidReceiptExpiredSubscriptionError,
  21007 => SandboxReceiptSentToProductionError,
  21008 => ProductionReceiptSentToSandboxError
}