From b7fd0ee13eaf0d7058632020aecbecfd141e6684 Mon Sep 17 00:00:00 2001 From: Skyler Reimer Date: Mon, 3 Jan 2022 10:06:33 -0800 Subject: [PATCH] Enable Eps, Giropay, p24, klarna and paypal in payment sheet --- .../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 2dc53f7b151..fbe5d3be08c 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 @@ -348,7 +348,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