jnbt/candy_check

View on GitHub
lib/candy_check/play_store/acknowledger.rb

Summary

Maintainability
A
0 mins
Test Coverage
module CandyCheck
  module PlayStore
    class Acknowledger
      def initialize(authorization:)
        @authorization = authorization
      end

      def acknowledge_product_purchase(package_name:, product_id:, token:)
        acknowledger = CandyCheck::PlayStore::ProductAcknowledgements::Acknowledgement.new(
          package_name: package_name,
          product_id: product_id,
          token: token,
          authorization: @authorization,
        )
        acknowledger.call!
      end
    end
  end
end