Module: CandyCheck::PlayStore

Defined in:
lib/candy_check/play_store.rb,
lib/candy_check/play_store/verifier.rb,
lib/candy_check/play_store/verification_failure.rb,
lib/candy_check/play_store/android_publisher_service.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/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: ProductPurchases, SubscriptionPurchases Classes: 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)

17
18
19
20
21
22
# File 'lib/candy_check/play_store.rb', line 17

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