Allow cancellation of an expired purchaseToken

This commit is contained in:
Ravi Khadiwala authored and ravi-signal committed 2025-03-07 15:26:33 -06:00
1 parent 469955aec9
commit b7fee7b426
2 files changed
+13 -1

No files matched your search

@@ -219,7 +219,9 @@ public class GooglePlayBillingManager implements SubscriptionPaymentProcessor {
return executeTokenOperation(pub ->
pub.purchases().subscriptions().cancel(packageName, purchase.getProductId(), purchaseToken));
});
})
// If the subscription is not found, no need to do anything
.exceptionally(ExceptionUtils.exceptionallyHandler(SubscriptionException.NotFound.class, e -> null));
}
@Override