Deishelon / google-play-billing-validator

Npm module for Node.js to validate In-app purchases and Subscriptions on your backend
https://medium.com/androidhub/how-to-validate-in-app-purchase-subscription-on-your-node-js-backend-a2b823470034
90 stars 32 forks source link

Acknowledge support #8

Closed hvaddi9 closed 5 years ago

hvaddi9 commented 5 years ago

Description

Please describe your pull request.

Supports In-App Purchase or Subscription Acknowledgement. If user provides an extra parameter developerPayload (the body parameter in acknowledge method), it acknowledges the purchase.

Types of changes

Documentation:

hvaddi9 commented 5 years ago

I also feel that there's lot of redundant code in verifyINAPP & verifySub functions. URI is only value that changes between them. Hence, they can be combined together. But I assume, a lot of existing users must be using these functions separately.

Deishelon commented 5 years ago

Hey, looks good👍 Will update documentation to reflect changes and will push the update to npm

Will clean up duplicated code in the future release :)