Skip to content

Commit

Permalink
Post Payment launcher cleanup (#4180)
Browse files Browse the repository at this point in the history
* added some internals that were removed back post paymentlauncher

* fix lint, api check
  • Loading branch information
skyler-stripe authored Sep 10, 2021
1 parent e39419f commit ff8c6e9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions payments-core/api/payments-core.api
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ public final class com/stripe/android/googlepaylauncher/GooglePayLauncherModule_
public static fun provideGooglePayRepositoryFactory (Lcom/stripe/android/googlepaylauncher/GooglePayLauncherModule;Landroid/content/Context;Lcom/stripe/android/Logger;)Lkotlin/jvm/functions/Function1;
}

public class com/stripe/android/googlepaylauncher/GooglePayPaymentMethodLauncher {
public final class com/stripe/android/googlepaylauncher/GooglePayPaymentMethodLauncher {
public static final field $stable I
public static final field Companion Lcom/stripe/android/googlepaylauncher/GooglePayPaymentMethodLauncher$Companion;
public static final field DEVELOPER_ERROR I
Expand All @@ -1153,7 +1153,7 @@ public class com/stripe/android/googlepaylauncher/GooglePayPaymentMethodLauncher
public fun <init> (Landroidx/fragment/app/Fragment;Lcom/stripe/android/googlepaylauncher/GooglePayPaymentMethodLauncher$Config;Lcom/stripe/android/googlepaylauncher/GooglePayPaymentMethodLauncher$ReadyCallback;Lcom/stripe/android/googlepaylauncher/GooglePayPaymentMethodLauncher$ResultCallback;)V
public final fun present (Ljava/lang/String;)V
public final fun present (Ljava/lang/String;I)V
public fun present (Ljava/lang/String;ILjava/lang/String;)V
public final fun present (Ljava/lang/String;ILjava/lang/String;)V
public static synthetic fun present$default (Lcom/stripe/android/googlepaylauncher/GooglePayPaymentMethodLauncher;Ljava/lang/String;ILjava/lang/String;ILjava/lang/Object;)V
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import android.content.Intent
import androidx.activity.result.ActivityResultCallback
import androidx.activity.result.ActivityResultCaller
import androidx.activity.result.ActivityResultLauncher
import androidx.annotation.RestrictTo
import androidx.annotation.VisibleForTesting
import com.stripe.android.exception.APIConnectionException
import com.stripe.android.exception.APIException
Expand Down Expand Up @@ -48,7 +47,6 @@ import kotlin.coroutines.CoroutineContext
* by the [PaymentIntent] or [SetupIntent] object.
*/
internal class StripePaymentController
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) // For paymentsheet
@VisibleForTesting
constructor(
context: Context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import java.util.Locale
* See the [Google Pay integration guide](https://stripe.com/docs/google-pay) for more details.
*/
@JvmSuppressWildcards
open class GooglePayPaymentMethodLauncher @AssistedInject internal constructor(
class GooglePayPaymentMethodLauncher @AssistedInject internal constructor(
@Assisted lifecycleScope: CoroutineScope,
@Assisted private val config: Config,
@Assisted private val readyCallback: ReadyCallback,
Expand Down Expand Up @@ -152,7 +152,7 @@ open class GooglePayPaymentMethodLauncher @AssistedInject internal constructor(
* This field is required when you send callbacks to the Google Transaction Events API.
*/
@JvmOverloads
open fun present(
fun present(
currencyCode: String,
amount: Int = 0,
transactionId: String? = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ internal sealed class PaymentFlowResultProcessor<T : StripeIntent, out S : Strip
private val logger = Logger.getInstance(enableLogging)
private val failureMessageFactory = PaymentFlowFailureMessageFactory(context)

open suspend fun processResult(
suspend fun processResult(
unvalidatedResult: PaymentFlowResult.Unvalidated
): S = withContext(workContext) {
val result = unvalidatedResult.validate()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.stripe.android.paymentsheet
import com.stripe.android.model.PaymentMethod
import com.stripe.android.paymentsheet.repositories.CustomerRepository

internal open class FakeCustomerRepository(
internal class FakeCustomerRepository(
private val paymentMethods: List<PaymentMethod> = emptyList()
) : CustomerRepository {
lateinit var savedPaymentMethod: PaymentMethod
Expand Down

0 comments on commit ff8c6e9

Please sign in to comment.