diff --git a/paymentsheet-example/src/androidTest/java/com/stripe/android/lpm/TestFpx.kt b/paymentsheet-example/src/androidTest/java/com/stripe/android/lpm/TestFpx.kt new file mode 100644 index 00000000000..e0c4b92114e --- /dev/null +++ b/paymentsheet-example/src/androidTest/java/com/stripe/android/lpm/TestFpx.kt @@ -0,0 +1,27 @@ +package com.stripe.android.lpm + +import androidx.test.ext.junit.runners.AndroidJUnit4 +import com.stripe.android.BaseLpmTest +import org.junit.Test +import org.junit.runner.RunWith + +@RunWith(AndroidJUnit4::class) +internal class TestFpx : BaseLpmTest() { + private val fpx = newUser.copy( + paymentMethod = lpmRepository.fromCode("fpx")!!, + ) + + @Test + fun testFpx() { + testDriver.confirmNewOrGuestComplete( + testParameters = fpx, + ) + } + + @Test + fun testFpxInCustomFlow() { + testDriver.confirmCustom( + testParameters = fpx, + ) + } +}