package com.revenuecat.purchases.google;

import com.revenuecat.purchases.models.StoreTransaction;
import kotlin.jvm.internal.o;
import kotlin.jvm.internal.p;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
public final class BillingWrapper$consumeAndSave$addToken$1 extends p implements J4.c {
    final /* synthetic */ StoreTransaction $purchase;
    final /* synthetic */ BillingWrapper this$0;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public BillingWrapper$consumeAndSave$addToken$1(BillingWrapper billingWrapper, StoreTransaction storeTransaction) {
        super(1);
        this.this$0 = billingWrapper;
        this.$purchase = storeTransaction;
    }

    @Override // J4.c
    public /* bridge */ /* synthetic */ Object invoke(Object obj) {
        invoke((String) obj);
        return C3137A.f25453a;
    }

    public final void invoke(String token) {
        o.h(token, "token");
        this.this$0.deviceCache.addSuccessfullyPostedToken(token, this.$purchase.isAutoRenewing());
    }
}
