-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for getBuyIntentExtraParams() (#287)
* Add support for getBuyIntentExtraParams() Add support for getBuyIntentExtraParams() as this is the recommended method by Google https://developer.android.com/google/play/billing/billing_reference.html#getBuyIntent The method is a variant of the getBuyIntent() method, and takes an additional extraParams parameter. More info here: https://developer.android.com/google/play/billing/billing_reference.html#getBuyIntentExtraParams * Cleanup * Address coding style issues * Remove extra blank line * As requested, create specific methods to send the extra params, instead of overriding existing ones * Fix style * Implement @serggl’s feedback Use isBillingSupportedExtraParams() to check if we can use the new getBuyIntentExtraParams() method and fallback to the previous method if that’s not the case. As isBillingSupportedExtraParams() is only available starting with Billing API v7, we effectively limit the usage of getBuyIntentExtraParams() to Billing API v7+ * Add missing javadoc + Fix style * Update README to add new methods usage
- Loading branch information
Showing
4 changed files
with
291 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.