From 038e5da01b20563923d6fe42989a2e9076173307 Mon Sep 17 00:00:00 2001 From: Skyler <89166418+skyler-stripe@users.noreply.github.com> Date: Tue, 4 Jan 2022 13:59:48 -0500 Subject: [PATCH] Enable Eps, Giropay, p24, klarna and paypal in payment sheet (#4489) --- .../paymentsheet/model/SupportedPaymentMethod.kt | 4 +++- .../src/test/resources/klarna-support.csv | 16 ++++++++-------- .../src/test/resources/paypal-support.csv | 16 ++++++++-------- 3 files changed, 19 insertions(+), 17 deletions(-) diff --git a/paymentsheet/src/main/java/com/stripe/android/paymentsheet/model/SupportedPaymentMethod.kt b/paymentsheet/src/main/java/com/stripe/android/paymentsheet/model/SupportedPaymentMethod.kt index 249eb8d6dbe..09c1a01e2cf 100644 --- a/paymentsheet/src/main/java/com/stripe/android/paymentsheet/model/SupportedPaymentMethod.kt +++ b/paymentsheet/src/main/java/com/stripe/android/paymentsheet/model/SupportedPaymentMethod.kt @@ -316,7 +316,9 @@ internal sealed class SupportedPaymentMethod( * This is a list of the payment methods that we are allowing in the release */ @VisibleForTesting - internal val exposedPaymentMethods = listOf(Card, Bancontact, Sofort, Ideal, SepaDebit) + internal val exposedPaymentMethods = listOf( + Card, Bancontact, Sofort, Ideal, SepaDebit, Eps, Giropay, P24, Klarna, PayPal + ) /** * This will use only those payment methods that are allowed in the release diff --git a/paymentsheet/src/test/resources/klarna-support.csv b/paymentsheet/src/test/resources/klarna-support.csv index 8c878f5f44a..1d66f989e10 100644 --- a/paymentsheet/src/test/resources/klarna-support.csv +++ b/paymentsheet/src/test/resources/klarna-support.csv @@ -7,10 +7,10 @@ klarna, true, true, on_session, false, card/klarna, false, false, not available, klarna, true, true, on_session, false, card/eps/klarna, false, false, not available, false klarna, true, false, on_session, false, card/klarna, false, false, not available, false klarna, true, false, on_session, false, card/eps/klarna, false, false, not available, false -klarna, true, true, null, false, card/klarna, false, true, oneTime, false -klarna, true, true, null, false, card/eps/klarna, false, true, oneTime, false -klarna, true, false, null, false, card/klarna, false, true, oneTime, false -klarna, true, false, null, false, card/eps/klarna, false, true, oneTime, false +klarna, true, true, null, false, card/klarna, false, true, oneTime, true +klarna, true, true, null, false, card/eps/klarna, false, true, oneTime, true +klarna, true, false, null, false, card/klarna, false, true, oneTime, true +klarna, true, false, null, false, card/eps/klarna, false, true, oneTime, true klarna, false, true, off_session, false, card/klarna, false, false, not available, false klarna, false, true, off_session, false, card/eps/klarna, false, false, not available, false klarna, false, false, off_session, false, card/klarna, false, false, not available, false @@ -19,7 +19,7 @@ klarna, false, true, on_session, false, card/klarna, false, false, not available klarna, false, true, on_session, false, card/eps/klarna, false, false, not available, false klarna, false, false, on_session, false, card/klarna, false, false, not available, false klarna, false, false, on_session, false, card/eps/klarna, false, false, not available, false -klarna, false, true, null, false, card/klarna, false, true, oneTime, false -klarna, false, true, null, false, card/eps/klarna, false, true, oneTime, false -klarna, false, false, null, false, card/klarna, false, true, oneTime, false -klarna, false, false, null, false, card/eps/klarna, false, true, oneTime, false +klarna, false, true, null, false, card/klarna, false, true, oneTime, true +klarna, false, true, null, false, card/eps/klarna, false, true, oneTime, true +klarna, false, false, null, false, card/klarna, false, true, oneTime, true +klarna, false, false, null, false, card/eps/klarna, false, true, oneTime, true diff --git a/paymentsheet/src/test/resources/paypal-support.csv b/paymentsheet/src/test/resources/paypal-support.csv index 1e73eb75329..e32c3eca270 100644 --- a/paymentsheet/src/test/resources/paypal-support.csv +++ b/paymentsheet/src/test/resources/paypal-support.csv @@ -7,10 +7,10 @@ paypal, true, true, on_session, false, card/paypal, false, false, not available, paypal, true, true, on_session, false, card/eps/paypal, false, false, not available, false paypal, true, false, on_session, false, card/paypal, false, false, not available, false paypal, true, false, on_session, false, card/eps/paypal, false, false, not available, false -paypal, true, true, null, false, card/paypal, false, true, oneTime, false -paypal, true, true, null, false, card/eps/paypal, false, true, oneTime, false -paypal, true, false, null, false, card/paypal, false, true, oneTime, false -paypal, true, false, null, false, card/eps/paypal, false, true, oneTime, false +paypal, true, true, null, false, card/paypal, false, true, oneTime, true +paypal, true, true, null, false, card/eps/paypal, false, true, oneTime, true +paypal, true, false, null, false, card/paypal, false, true, oneTime, true +paypal, true, false, null, false, card/eps/paypal, false, true, oneTime, true paypal, false, true, off_session, false, card/paypal, false, false, not available, false paypal, false, true, off_session, false, card/eps/paypal, false, false, not available, false paypal, false, false, off_session, false, card/paypal, false, false, not available, false @@ -19,7 +19,7 @@ paypal, false, true, on_session, false, card/paypal, false, false, not available paypal, false, true, on_session, false, card/eps/paypal, false, false, not available, false paypal, false, false, on_session, false, card/paypal, false, false, not available, false paypal, false, false, on_session, false, card/eps/paypal, false, false, not available, false -paypal, false, true, null, false, card/paypal, false, true, oneTime, false -paypal, false, true, null, false, card/eps/paypal, false, true, oneTime, false -paypal, false, false, null, false, card/paypal, false, true, oneTime, false -paypal, false, false, null, false, card/eps/paypal, false, true, oneTime, false +paypal, false, true, null, false, card/paypal, false, true, oneTime, true +paypal, false, true, null, false, card/eps/paypal, false, true, oneTime, true +paypal, false, false, null, false, card/paypal, false, true, oneTime, true +paypal, false, false, null, false, card/eps/paypal, false, true, oneTime, true