We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f0b5748 + 0f6690f commit 9983d5bCopy full SHA for 9983d5b
modules/plan/src/main/PayPalClient.scala
@@ -116,7 +116,9 @@ final private class PayPalClient(
116
117
def getSubscription(id: PayPalSubscriptionId): Fu[Option[PayPalSubscription]] =
118
getOne[PayPalSubscription](s"${path.subscriptions}/$id") recover {
119
- case CantParseException(json, _) if json.str("status").has("CANCELLED") => none
+ case CantParseException(json, _)
120
+ if json.str("status").exists(status => status == "CANCELLED" || status == "SUSPENDED") =>
121
+ none
122
}
123
124
def getEvent(id: PayPalEventId): Fu[Option[PayPalEvent]] =
0 commit comments