-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add server ACK for consumable #50
Add server ACK for consumable #50
Conversation
@gerard-morera Looks promising. Can you please also extend the README to describe this feature? @christophweegen Can you please have a general review of this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @gerard-morera,
thanks for contributing. LGTM besides some minor typos.
As @jnbt already pointed out, documenting your feature in the README would be great, otherwise people won't even know it's there :-)
end | ||
|
||
def call! | ||
acknowlege! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: please rename to acknowledge!
|
||
private | ||
|
||
def acknowlege! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: please rename to acknowledge!
spec/play_store/acknowledger_spec.rb
Outdated
let(:authorization) { CandyCheck::PlayStore.authorization(json_key_file) } | ||
|
||
describe "#acknowledge_product_purchase" do | ||
it "when acknowlegement succeeds" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: please rename to acknowledgement
let(:authorization) { CandyCheck::PlayStore.authorization(json_key_file) } | ||
|
||
describe "#call!" do | ||
it "when acknowlegement succeeds" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: please rename to acknowledgement
323b4e6
to
e2ec45b
Compare
e2ec45b
to
925e398
Compare
@christophweegen and @jnbt thanks for your reviews. Renamed the typo and added the Readme. FYI; this code has already been working one week in production in my company. |
@christophweegen Please have a second look. If you're fine with it. Please merge and release |
📌 References
🎯 What is the goal?
Perform server purchases acknowledgement.
Purchases ACK is used to confirm to google play that the purchase flow happened as expected. If the ACK does not happen the purchase is refunded within 4 minutes.
If the ACK is done from the client-side and the validation to the server fails it will make users that have paid not having it's correspondent capabilities active. This candy_check new feature will let acknowledge the purchase after capabilities grant.
📝 How is it being implemented?
Following Candy Check patterns and calling to Google API ACK service.