Class: CandyCheck::PlayStore::SubscriptionVerification
- Inherits:
-
Verification
- Object
- Verification
- CandyCheck::PlayStore::SubscriptionVerification
- Defined in:
- lib/candy_check/play_store/subscription_verification.rb
Overview
Verifies a purchase token against the Google API The call return either an Receipt or an VerificationFailure
Instance Attribute Summary
Attributes inherited from Verification
Instance Method Summary collapse
-
#call! ⇒ Subscription, VerificationFailure
Performs the verification against the remote server.
Methods inherited from Verification
Constructor Details
This class inherits a constructor from CandyCheck::PlayStore::Verification
Instance Method Details
#call! ⇒ Subscription, VerificationFailure
Performs the verification against the remote server
9 10 11 12 13 14 15 16 |
# File 'lib/candy_check/play_store/subscription_verification.rb', line 9 def call! verify! if valid? Subscription.new(@response) else VerificationFailure.new(@response['error']) end end |