Skip to content

Commit

Permalink
Add acknowledge_product_purchase method to Acknowledger
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Schmidt committed Dec 11, 2020
1 parent 8500c32 commit d9172f0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/candy_check/play_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
require "candy_check/play_store/product_acknowledgements/acknowledgement"
require "candy_check/play_store/product_acknowledgements/response"
require "candy_check/play_store/subscription_purchases/subscription_verification"
require "candy_check/play_store/subscription_acknowledgements/acknowledgement"
require "candy_check/play_store/subscription_acknowledgements/response"
require "candy_check/play_store/verification_failure"
require "candy_check/play_store/verifier"
require "candy_check/play_store/acknowledger"
Expand Down
9 changes: 9 additions & 0 deletions lib/candy_check/play_store/acknowledger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ def acknowledge_product_purchase(package_name:, product_id:, token:)
)
acknowledger.call!
end

def acknowledge_subscription_purchase(package_name:, subscription_id:, token:)
CandyCheck::PlayStore::SubscriptionAcknowledgements::Acknowledgement.new(
package_name: package_name,
subscription_id: subscription_id,
token: token,
authorization: @authorization,
).call!
end
end
end
end

0 comments on commit d9172f0

Please sign in to comment.