Class: CandyCheck::AppStore::SubscriptionVerification
- Inherits:
-
Verification
- Object
- Verification
- CandyCheck::AppStore::SubscriptionVerification
- Defined in:
- lib/candy_check/app_store/subscription_verification.rb
Overview
Verifies a latest_receipt_info block against a verification server. The call return either an ReceiptCollection or a VerificationFailure
Constant Summary
Constants inherited from Verification
Instance Attribute Summary
Attributes inherited from Verification
#endpoint_url, #receipt_data, #secret
Instance Method Summary collapse
-
#call! ⇒ ReceiptCollection, VerificationFailure
Performs the verification against the remote server.
Methods inherited from Verification
Constructor Details
This class inherits a constructor from CandyCheck::AppStore::Verification
Instance Method Details
#call! ⇒ ReceiptCollection, VerificationFailure
Performs the verification against the remote server
9 10 11 12 13 14 15 16 |
# File 'lib/candy_check/app_store/subscription_verification.rb', line 9 def call! verify! if valid? ReceiptCollection.new(@response['latest_receipt_info']) else VerificationFailure.fetch(@response['status']) end end |