Module: CandyCheck::PlayStore

Defined in:
lib/candy_check/play_store.rb,
lib/candy_check/play_store/verifier.rb,
lib/candy_check/play_store/acknowledger.rb,
lib/candy_check/play_store/verification_failure.rb,
lib/candy_check/play_store/android_publisher_service.rb,
lib/candy_check/play_store/product_acknowledgements/response.rb,
lib/candy_check/play_store/product_purchases/product_purchase.rb,
lib/candy_check/play_store/product_purchases/product_verification.rb,
lib/candy_check/play_store/product_acknowledgements/acknowledgement.rb,
lib/candy_check/play_store/subscription_purchases/subscription_purchase.rb,
lib/candy_check/play_store/subscription_purchases/subscription_verification.rb

Overview

Module to request and verify a AppStore receipt

Defined Under Namespace

Modules: ProductAcknowledgements, ProductPurchases, SubscriptionPurchases Classes: Acknowledger, AndroidPublisherService, VerificationFailure, Verifier

Class Method Summary collapse

Class Method Details

.authorization(json_key_file) ⇒ Google::Auth::ServiceAccountCredentials

Build an authorization object

Parameters:

  • json_key_file (String)

Returns:

  • (Google::Auth::ServiceAccountCredentials)


21
22
23
24
25
26
# File 'lib/candy_check/play_store.rb', line 21

def self.authorization(json_key_file)
  Google::Auth::ServiceAccountCredentials.make_creds(
    json_key_io: File.open(json_key_file),
    scope: "https://www.googleapis.com/auth/androidpublisher",
  )
end