consume
Initiates a consumption of an In-App product.
Use this function to consume an In-App product after processing it in your application. Returns a Result.success if finished, or a Result.failure with a BillingError If the error is not a BillingError, something went wrong in communication with the store itself.
Return
Result.success with the purchase token or a Result.failure
Parameters
: The purchaseToken related to the purchase you wish to consume.
Initiates a consumption of an In-App product.
Use this function to consume an In-App product after processing it in your application. Returns a Result.success if finished, or a Result.failure with a BillingError If the error is not a BillingError, something went wrong in communication with the store itself.
Parameters
: The purchaseToken related to the purchase you wish to consume.
: A callback that will receive the Result<String>, containing Result.success with the purchase token or a Result.failure