Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package com.chargebee.android.restore

import android.util.Log
import com.chargebee.android.ErrorDetail
import com.chargebee.android.billingservice.CBCallback
import com.chargebee.android.billingservice.CBPurchase
import com.chargebee.android.billingservice.GPErrorCode
import com.chargebee.android.billingservice.ProductType
import com.chargebee.android.exceptions.CBException
import com.chargebee.android.exceptions.ChargebeeResult
Expand Down Expand Up @@ -90,14 +88,7 @@ class CBRestorePurchaseManager {
) {
if (storeTransactions.isEmpty()) {
if (restorePurchases.isEmpty()) {
completionCallback.onError(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cb-amutha could u please also remove unused imports

com.chargebee.android.ErrorDetail
com.chargebee.android.billingservice.GPErrorCode

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

CBException(
ErrorDetail(
message = GPErrorCode.InvalidPurchaseToken.errorMsg,
httpStatusCode = 400
)
)
)
completionCallback.onSuccess(emptyList())
} else {
val activePurchases = restorePurchases.filter { subscription ->
subscription.storeStatus == StoreStatus.Active.value
Expand Down