mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 13:16:53 +00:00
Allow cancellation of an expired purchaseToken
This commit is contained in:
1 parent
469955aec9
commit
b7fee7b426
2 files changed
+13
-1
No files matched your search
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user