ActiveSubscription state error unit tests for recurring job.

This commit is contained in:
Alex Hart
2025-01-29 10:53:43 -04:00
committed by Greyson Parrelli
parent fd1e47888a
commit c723bc812a
3 changed files with 361 additions and 12 deletions

View File

@@ -443,7 +443,6 @@ class InAppPaymentRecurringContextJob private constructor(
inAppPayment: InAppPaymentTable.InAppPayment,
serviceResponse: ServiceResponse<ReceiptCredentialResponse>
) {
val isForKeepAlive = inAppPayment.data.redemption!!.keepAlive == true
val applicationError = serviceResponse.applicationError.get()
when (serviceResponse.status) {
204 -> {
@@ -482,6 +481,7 @@ class InAppPaymentRecurringContextJob private constructor(
}
updateInAppPaymentWithTokenAlreadyRedeemedError(inAppPayment)
throw Exception(applicationError)
}
else -> {