diff --git a/app/src/main/java/org/thoughtcrime/securesms/jobs/ExternalLaunchDonationJob.kt b/app/src/main/java/org/thoughtcrime/securesms/jobs/ExternalLaunchDonationJob.kt index 0017511031..f5aec0d14e 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/jobs/ExternalLaunchDonationJob.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/jobs/ExternalLaunchDonationJob.kt @@ -29,7 +29,7 @@ import org.thoughtcrime.securesms.subscription.LevelUpdate import org.thoughtcrime.securesms.util.Environment import org.whispersystems.signalservice.internal.ServiceResponse import org.whispersystems.signalservice.internal.push.DonationProcessor -import java.util.concurrent.TimeUnit +import kotlin.time.Duration.Companion.days /** * Proceeds with an externally approved (say, in a bank app) donation @@ -49,6 +49,8 @@ class ExternalLaunchDonationJob private constructor( fun enqueueIfNecessary() { val stripe3DSData = SignalStore.donationsValues().consumePending3DSData(-1L) ?: return + Log.i(TAG, "Consumed 3DS data") + val jobChain = when (stripe3DSData.gatewayRequest.donateToSignalType) { DonateToSignalType.ONE_TIME -> BoostReceiptRequestResponseJob.createJobChainForBoost( stripe3DSData.stripeIntentAccessor.intentId, @@ -88,7 +90,7 @@ class ExternalLaunchDonationJob private constructor( .setQueue(if (stripe3DSData.gatewayRequest.donateToSignalType == DonateToSignalType.MONTHLY) DonationReceiptRedemptionJob.SUBSCRIPTION_QUEUE else DonationReceiptRedemptionJob.ONE_TIME_QUEUE) .addConstraint(NetworkConstraint.KEY) .setMaxAttempts(Parameters.UNLIMITED) - .setLifespan(TimeUnit.DAYS.toDays(1)) + .setLifespan(1.days.inWholeMilliseconds) .build() ) diff --git a/donations/lib/src/main/java/org/signal/donations/PaymentSourceType.kt b/donations/lib/src/main/java/org/signal/donations/PaymentSourceType.kt index f851b93b91..5e8072f74b 100644 --- a/donations/lib/src/main/java/org/signal/donations/PaymentSourceType.kt +++ b/donations/lib/src/main/java/org/signal/donations/PaymentSourceType.kt @@ -28,7 +28,7 @@ sealed class PaymentSourceType { object GooglePay : Stripe(Codes.GOOGLE_PAY.code, "CARD", false) /** - * SEPA Debits can take up to 14 days to process. + * SEPA Debits can take up to 14 bank days to process. */ object SEPADebit : Stripe(Codes.SEPA_DEBIT.code, "SEPA_DEBIT", true)