Fix lifespan typo for ExternalLaunchDonationJob.
This commit is contained in:
parent
a9ee7e93fd
commit
60eb1332d2
2 changed files with 5 additions and 3 deletions
|
@ -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()
|
||||
)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue