discord-jadx/app/src/main/java/com/discord/utilities/billing/BillingUtils$verifyPurchase...

39 lines
1.6 KiB
Java

package com.discord.utilities.billing;
import com.android.billingclient.api.Purchase;
import com.discord.stores.StoreGooglePlayPurchases;
import com.discord.stores.StoreStream;
import com.discord.utilities.error.Error;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: BillingUtils.kt */
public final class BillingUtils$verifyPurchase$2 extends o implements Function1<Error, Unit> {
public final /* synthetic */ Purchase $purchase;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public BillingUtils$verifyPurchase$2(Purchase purchase) {
super(1);
this.$purchase = purchase;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Unit invoke(Error error) {
invoke(error);
return Unit.a;
}
public final void invoke(Error error) {
m.checkNotNullParameter(error, "it");
StoreStream.Companion companion = StoreStream.Companion;
companion.getGooglePlayPurchases().onVerificationFailure(new StoreGooglePlayPurchases.VerificationResult(this.$purchase, null));
StoreGooglePlayPurchases googlePlayPurchases = companion.getGooglePlayPurchases();
String b = this.$purchase.b();
m.checkNotNullExpressionValue(b, "purchase.sku");
googlePlayPurchases.trackPaymentFlowFailed(b);
}
}