
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
IappValidator
is a Ruby gem that facilitates purchase verification for Google Play. It leverages the Google Play Developer API to confirm whether a purchase is valid or not.
Add the gem to your application's Gemfile
:
gem 'iapp_validator'
Then run:
bundle install
To verify Google Play purchases, you need a Google Play Service Account JSON key.
config/credentials/google_play_service_account.json
).require 'iapp_validator'
validator = ReceiptHelper::GooglePlayValidator.new
result = validator.verify_purchase("com.package.name", "your.product.id", "purchase_token")
if result[:success]
puts "Purchase is valid"
else
puts "Purchase failed: #{result[:error]}"
end
verify_purchase(package_name, product_id, token)
Parameterspackage_name
: The package name of your app on Google Play (e.g., com.katkatgames.kanbiztoupatou
)product_id
: The ID of the purchased product (e.g., coins_100
)token
: The purchase token returned from the Google Play API.To install the gem locally:
bundle exec rake install
To open an interactive console:
bin/console
Pull requests, bug reports, and suggestions are welcome! Please follow the Code of Conduct.
This gem is licensed under the MIT License.
FAQs
Unknown package
We found that iapp_validator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.