Skip to content

Instantly share code, notes, and snippets.

@mattiaferigutti
Created January 17, 2021 16:43
Show Gist options
  • Select an option

  • Save mattiaferigutti/9820779ede37a830e5d9afa84f1c0cd9 to your computer and use it in GitHub Desktop.

Select an option

Save mattiaferigutti/9820779ede37a830e5d9afa84f1c0cd9 to your computer and use it in GitHub Desktop.
private fun purchaseProduct() {
val isOneTimePurchaseSupported = billingProcessor?.isOneTimePurchaseSupported
if (isOneTimePurchaseSupported == true) {
billingProcessor?.purchase(this, PRODUCT_ID)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment