jnbt / candy_check

Check and verify in-app receipts
MIT License
125 stars 70 forks source link

Include an instance of the verifier to be used in rails #10

Closed fourcolors closed 7 years ago

fourcolors commented 7 years ago

It would be nice to do the configuration and initialization items for a rails app in the initializer then use the verifier in a controller. ie

CandyCheck.verifier(params)

klaseskilson commented 7 years ago

You can add a simple initializer to do this. I think that is a better solution in order to avoid to make this project Rails-specific.

fourcolors commented 7 years ago

@klaseskilson I kind of agree with that... hm.. I wrote a little wrapper for this gem to plug it into Rails. I'll publish once I get my feature developed out.

Quick question, whats the whole "key_file" thing? https://developers.google.com/android-publisher/authorization doesn't reference that at all.

fourcolors commented 7 years ago

Ok, nm I found where to generate that file. These authentication systems are pretty complete sometimes.

jnbt commented 7 years ago

Thanks for opening #11.