Skip to content
Snippets Groups Projects
Commit cf0d8bef authored by Taras's avatar Taras
Browse files

Make interfaces independent of billing api

parent dbf1bc0a
No related merge requests found
package org.futo.circles.subscriptions.google
import com.android.billingclient.api.Purchase
interface GoogleItemPurchasedListener {
fun onItemPurchased(purchases: List<Purchase>)
fun onItemPurchased(purchase: String)
fun onPurchaseFailed(errorCode: Int)
......
package org.futo.circles.subscriptions
import com.android.billingclient.api.ProductDetails
interface SubscriptionManager {
suspend fun getDetails(): BillingResult<List<SubscriptionData>>
suspend fun getDetails(productIds: List<String>): BillingResult<List<SubscriptionData>>
suspend fun purchaseProduct(productDetails: ProductDetails): BillingResult<String>
suspend fun purchaseProduct(productId: String): BillingResult<String>
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment