正在查看: BodyTech v7.6.4 应用的 DefaultIntentConfirmationInterceptor.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BodyTech v7.6.4 应用的 DefaultIntentConfirmationInterceptor.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.paymentsheet;
import android.content.Context;
import androidx.compose.runtime.internal.StabilityInferred;
import com.stripe.android.core.networking.e;
import com.stripe.android.model.ConfirmPaymentIntentParams;
import com.stripe.android.model.PaymentMethod;
import com.stripe.android.model.PaymentMethodCreateParams;
import com.stripe.android.paymentsheet.PaymentSheet;
import com.stripe.android.paymentsheet.n;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.coroutines.Continuation;
import kotlin.jvm.functions.Function0;
@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u0000\u0086\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0000\u0018\u00002\u00020\u0001BE\b\u0007\u0012\u0006\u00101\u001a\u00020/\u0012\u0006\u00105\u001a\u000202\u0012\b\b\u0001\u00108\u001a\u00020\b\u0012\u000e\b\u0001\u0010<\u001a\b\u0012\u0004\u0012\u00020\u001a09\u0012\u0010\b\u0001\u0010>\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u001a09¢\u0006\u0004\bF\u0010GJ2\u0010\u000b\u001a\u00020\n2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00042\b\u0010\u0007\u001a\u0004\u0018\u00010\u00062\u0006\u0010\t\u001a\u00020\bH\u0082@¢\u0006\u0004\b\u000b\u0010\fJ2\u0010\u0010\u001a\u00020\n2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u000e\u001a\u00020\r2\b\u0010\u0007\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u000f\u001a\u00020\bH\u0082@¢\u0006\u0004\b\u0010\u0010\u0011J$\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\r0\u00132\u0006\u0010\u0012\u001a\u00020\u0004H\u0082@ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u0014\u0010\u0015J:\u0010\u0018\u001a\u00020\n2\u0006\u0010\u0017\u001a\u00020\u00162\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u000e\u001a\u00020\r2\u0006\u0010\u000f\u001a\u00020\b2\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006H\u0082@¢\u0006\u0004\b\u0018\u0010\u0019J2\u0010\u001c\u001a\u00020\n2\u0006\u0010\u001b\u001a\u00020\u001a2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u000e\u001a\u00020\r2\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006H\u0082@¢\u0006\u0004\b\u001c\u0010\u001dJ$\u0010\u001f\u001a\b\u0012\u0004\u0012\u00020\u001e0\u00132\u0006\u0010\u001b\u001a\u00020\u001aH\u0082@ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u001f\u0010 J>\u0010%\u001a\u00020$2\u0006\u0010\u001b\u001a\u00020\u001a2\b\u0010\u0007\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u000e\u001a\u00020\r2\u0006\u0010!\u001a\u00020\b2\u0006\u0010\"\u001a\u00020\b2\n\b\u0002\u0010#\u001a\u0004\u0018\u00010\u001aH\u0002J.\u0010(\u001a\u00020$2\u0006\u0010\u001b\u001a\u00020\u001a2\b\u0010\u0007\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0005\u001a\u00020\u00042\n\b\u0002\u0010'\u001a\u0004\u0018\u00010&H\u0002J<\u0010+\u001a\u00020\n2\u0006\u0010*\u001a\u00020)2\u0006\u0010\u0005\u001a\u00020\u00042\b\u0010'\u001a\u0004\u0018\u00010&2\b\u0010\u0007\u001a\u0004\u0018\u00010\u00062\u0006\u0010\t\u001a\u00020\bH\u0096@¢\u0006\u0004\b+\u0010,J<\u0010-\u001a\u00020\n2\u0006\u0010*\u001a\u00020)2\u0006\u0010\u000e\u001a\u00020\r2\b\u0010\u0007\u001a\u0004\u0018\u00010\u00062\u0006\u0010!\u001a\u00020\b2\b\u0010#\u001a\u0004\u0018\u00010\u001aH\u0096@¢\u0006\u0004\b-\u0010.R\u0014\u00101\u001a\u00020/8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b+\u00100R\u0014\u00105\u001a\u0002028\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b3\u00104R\u0014\u00108\u001a\u00020\b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b6\u00107R\u001a\u0010<\u001a\b\u0012\u0004\u0012\u00020\u001a098\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b:\u0010;R\u001c\u0010>\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u001a098\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b=\u0010;R\u0014\u0010A\u001a\u00020\u001a8BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b?\u0010@R\u0014\u0010E\u001a\u00020B8BX\u0082\u0004¢\u0006\u0006\u001a\u0004\bC\u0010D\u0082\u0002\u000b\n\u0002\b!\n\u0005\b¡\u001e0\u0001¨\u0006H"}, d2 = {"Lcom/stripe/android/paymentsheet/DefaultIntentConfirmationInterceptor;", "Lcom/stripe/android/paymentsheet/n;", "Lcom/stripe/android/paymentsheet/PaymentSheet$IntentConfiguration;", "intentConfiguration", "Lcom/stripe/android/model/PaymentMethodCreateParams;", "paymentMethodCreateParams", "Lcom/stripe/android/model/ConfirmPaymentIntentParams$c;", "shippingValues", "", "customerRequestedSave", "Lcom/stripe/android/paymentsheet/n$c;", "p", "(Lcom/stripe/android/paymentsheet/PaymentSheet$IntentConfiguration;Lcom/stripe/android/model/PaymentMethodCreateParams;Lcom/stripe/android/model/ConfirmPaymentIntentParams$c;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Lcom/stripe/android/model/PaymentMethod;", "paymentMethod", "shouldSavePaymentMethod", "o", "(Lcom/stripe/android/paymentsheet/PaymentSheet$IntentConfiguration;Lcom/stripe/android/model/PaymentMethod;Lcom/stripe/android/model/ConfirmPaymentIntentParams$c;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "params", "Lkotlin/Result;", "l", "(Lcom/stripe/android/model/PaymentMethodCreateParams;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Lcom/stripe/android/paymentsheet/a;", "createIntentCallback", "q", "(Lcom/stripe/android/paymentsheet/a;Lcom/stripe/android/paymentsheet/PaymentSheet$IntentConfiguration;Lcom/stripe/android/model/PaymentMethod;ZLcom/stripe/android/model/ConfirmPaymentIntentParams$c;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "", "clientSecret", "r", "(Ljava/lang/String;Lcom/stripe/android/paymentsheet/PaymentSheet$IntentConfiguration;Lcom/stripe/android/model/PaymentMethod;Lcom/stripe/android/model/ConfirmPaymentIntentParams$c;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Lcom/stripe/android/model/StripeIntent;", "s", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "requiresSaveOnConfirmation", "isDeferred", "recollectedCvc", "Lcom/stripe/android/paymentsheet/n$c$b;", "h", "Lcom/stripe/android/model/o;", "paymentMethodOptionsParams", "i", "Lcom/stripe/android/paymentsheet/PaymentSheet$i;", "initializationMode", "b", "(Lcom/stripe/android/paymentsheet/PaymentSheet$i;Lcom/stripe/android/model/PaymentMethodCreateParams;Lcom/stripe/android/model/o;Lcom/stripe/android/model/ConfirmPaymentIntentParams$c;ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "a", "(Lcom/stripe/android/paymentsheet/PaymentSheet$i;Lcom/stripe/android/model/PaymentMethod;Lcom/stripe/android/model/ConfirmPaymentIntentParams$c;ZLjava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Landroid/content/Context;", "Landroid/content/Context;", "context", "Lcom/stripe/android/networking/m;", "c", "Lcom/stripe/android/networking/m;", "stripeRepository", "d", "Z", "isFlowController", "Lkotlin/Function0;", "e", "Lkotlin/jvm/functions/Function0;", "publishableKeyProvider", "f", "stripeAccountIdProvider", "m", "()Ljava/lang/String;", "genericErrorMessage", "Lcom/stripe/android/core/networking/e$c;", "n", "()Lcom/stripe/android/core/networking/e$c;", "requestOptions", "<init>", "(Landroid/content/Context;Lcom/stripe/android/networking/m;ZLkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)V", "paymentsheet_release"}, k = 1, mv = {1, 9, 0})
public final class DefaultIntentConfirmationInterceptor implements n {
private final Context context;
private final com.stripe.android.networking.m stripeRepository;
private final boolean isFlowController;
private final Function0<String> publishableKeyProvider;
private final Function0<String> stripeAccountIdProvider;
public DefaultIntentConfirmationInterceptor(Context context, com.stripe.android.networking.m stripeRepository, boolean z, Function0<String> publishableKeyProvider, Function0<String> stripeAccountIdProvider) {
kotlin.jvm.internal.r.i(context, "context");
kotlin.jvm.internal.r.i(stripeRepository, "stripeRepository");
kotlin.jvm.internal.r.i(publishableKeyProvider, "publishableKeyProvider");
kotlin.jvm.internal.r.i(stripeAccountIdProvider, "stripeAccountIdProvider");
this.context = context;
this.stripeRepository = stripeRepository;
this.isFlowController = z;
this.publishableKeyProvider = publishableKeyProvider;
this.stripeAccountIdProvider = stripeAccountIdProvider;
}
private final n.c.Confirm h(String clientSecret, ConfirmPaymentIntentParams.Shipping shippingValues, PaymentMethod paymentMethod, boolean requiresSaveOnConfirmation, boolean isDeferred, String recollectedCvc) {
return new n.c.Confirm(com.stripe.android.e.a.a(clientSecret, shippingValues).a(paymentMethod, requiresSaveOnConfirmation, recollectedCvc), isDeferred);
}
private final n.c.Confirm i(String clientSecret, ConfirmPaymentIntentParams.Shipping shippingValues, PaymentMethodCreateParams paymentMethodCreateParams, com.stripe.android.model.o paymentMethodOptionsParams) {
com.stripe.android.e a = com.stripe.android.e.a.a(clientSecret, shippingValues);
String y = paymentMethodCreateParams.y();
return new n.c.Confirm(y != null ? com.stripe.android.e.d(a, y, PaymentMethod.Type.d, false, (String) null, 12, (Object) null) : a.b(paymentMethodCreateParams, paymentMethodOptionsParams), false);
}
static n.c.Confirm j(DefaultIntentConfirmationInterceptor defaultIntentConfirmationInterceptor, String str, ConfirmPaymentIntentParams.Shipping shipping, PaymentMethod paymentMethod, boolean z, boolean z2, String str2, int i, Object obj) {
if ((i & 32) != 0) {
str2 = null;
}
return defaultIntentConfirmationInterceptor.h(str, shipping, paymentMethod, z, z2, str2);
}
static n.c.Confirm k(DefaultIntentConfirmationInterceptor defaultIntentConfirmationInterceptor, String str, ConfirmPaymentIntentParams.Shipping shipping, PaymentMethodCreateParams paymentMethodCreateParams, com.stripe.android.model.o oVar, int i, Object obj) {
if ((i & 8) != 0) {
oVar = null;
}
return defaultIntentConfirmationInterceptor.i(str, shipping, paymentMethodCreateParams, oVar);
}
public final java.lang.Object l(com.stripe.android.model.PaymentMethodCreateParams r5, kotlin.coroutines.Continuation<? super kotlin.Result<com.stripe.android.model.PaymentMethod>> r6) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.paymentsheet.DefaultIntentConfirmationInterceptor.l(com.stripe.android.model.PaymentMethodCreateParams, kotlin.coroutines.Continuation):java.lang.Object");
}
private final String m() {
String string = this.context.getString(i0.X);
kotlin.jvm.internal.r.h(string, "getString(...)");
return string;
}
private final e.Options n() {
return new e.Options(this.publishableKeyProvider.invoke(), this.stripeAccountIdProvider.invoke(), null, 4, null);
}
private final Object o(PaymentSheet.IntentConfiguration intentConfiguration, PaymentMethod paymentMethod, ConfirmPaymentIntentParams.Shipping shipping, boolean z, Continuation<? super n.c> continuation) {
a a = n.INSTANCE.a();
if (a != null) {
return q(a, intentConfiguration, paymentMethod, z, shipping, continuation);
}
throw new IllegalStateException((a.class.getSimpleName() + " must be implemented when using IntentConfiguration with PaymentSheet").toString());
}
public final java.lang.Object p(com.stripe.android.paymentsheet.PaymentSheet.IntentConfiguration r32, com.stripe.android.model.PaymentMethodCreateParams r33, com.stripe.android.model.ConfirmPaymentIntentParams.Shipping r34, boolean r35, kotlin.coroutines.Continuation<? super com.stripe.android.paymentsheet.n.c> r36) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.paymentsheet.DefaultIntentConfirmationInterceptor.p(com.stripe.android.paymentsheet.PaymentSheet$IntentConfiguration, com.stripe.android.model.PaymentMethodCreateParams, com.stripe.android.model.ConfirmPaymentIntentParams$c, boolean, kotlin.coroutines.Continuation):java.lang.Object");
}
public final java.lang.Object q(com.stripe.android.paymentsheet.a r6, com.stripe.android.paymentsheet.PaymentSheet.IntentConfiguration r7, com.stripe.android.model.PaymentMethod r8, boolean r9, com.stripe.android.model.ConfirmPaymentIntentParams.Shipping r10, kotlin.coroutines.Continuation<? super com.stripe.android.paymentsheet.n.c> r11) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.paymentsheet.DefaultIntentConfirmationInterceptor.q(com.stripe.android.paymentsheet.a, com.stripe.android.paymentsheet.PaymentSheet$IntentConfiguration, com.stripe.android.model.PaymentMethod, boolean, com.stripe.android.model.ConfirmPaymentIntentParams$c, kotlin.coroutines.Continuation):java.lang.Object");
}
public final java.lang.Object r(java.lang.String r15, com.stripe.android.paymentsheet.PaymentSheet.IntentConfiguration r16, com.stripe.android.model.PaymentMethod r17, com.stripe.android.model.ConfirmPaymentIntentParams.Shipping r18, kotlin.coroutines.Continuation<? super com.stripe.android.paymentsheet.n.c> r19) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.paymentsheet.DefaultIntentConfirmationInterceptor.r(java.lang.String, com.stripe.android.paymentsheet.PaymentSheet$IntentConfiguration, com.stripe.android.model.PaymentMethod, com.stripe.android.model.ConfirmPaymentIntentParams$c, kotlin.coroutines.Continuation):java.lang.Object");
}
public final java.lang.Object s(java.lang.String r9, kotlin.coroutines.Continuation<? super kotlin.Result<? extends com.stripe.android.model.StripeIntent>> r10) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.paymentsheet.DefaultIntentConfirmationInterceptor.s(java.lang.String, kotlin.coroutines.Continuation):java.lang.Object");
}
@Override
public Object a(PaymentSheet.i iVar, PaymentMethod paymentMethod, ConfirmPaymentIntentParams.Shipping shipping, boolean z, String str, Continuation<? super n.c> continuation) {
if (iVar instanceof PaymentSheet.i.DeferredIntent) {
return o(((PaymentSheet.i.DeferredIntent) iVar).getIntentConfiguration(), paymentMethod, shipping, z, continuation);
}
if (iVar instanceof PaymentSheet.i.PaymentIntent) {
return h(((PaymentSheet.i.PaymentIntent) iVar).getClientSecret(), shipping, paymentMethod, z, false, str);
}
if (iVar instanceof PaymentSheet.i.SetupIntent) {
return j(this, ((PaymentSheet.i.SetupIntent) iVar).getClientSecret(), shipping, paymentMethod, z, false, null, 32, null);
}
throw new NoWhenBranchMatchedException();
}
@Override
public Object b(PaymentSheet.i iVar, PaymentMethodCreateParams paymentMethodCreateParams, com.stripe.android.model.o oVar, ConfirmPaymentIntentParams.Shipping shipping, boolean z, Continuation<? super n.c> continuation) {
if (iVar instanceof PaymentSheet.i.DeferredIntent) {
return p(((PaymentSheet.i.DeferredIntent) iVar).getIntentConfiguration(), paymentMethodCreateParams, shipping, z, continuation);
}
if (iVar instanceof PaymentSheet.i.PaymentIntent) {
return i(((PaymentSheet.i.PaymentIntent) iVar).getClientSecret(), shipping, paymentMethodCreateParams, oVar);
}
if (iVar instanceof PaymentSheet.i.SetupIntent) {
return k(this, ((PaymentSheet.i.SetupIntent) iVar).getClientSecret(), shipping, paymentMethodCreateParams, null, 8, null);
}
throw new NoWhenBranchMatchedException();
}
}