Skip to content

Commit

Permalink
Add requiresMandate for PayPal
Browse files Browse the repository at this point in the history
  • Loading branch information
samer-stripe committed Feb 18, 2025
1 parent ba52013 commit f339063
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ constructor(
"paypal",
isReusable = false,
isVoucher = false,
requiresMandate = false,
requiresMandate = true,
hasDelayedSettlement = false,
),
AfterpayClearpay(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ class PaymentSelectionUpdaterTest {
iconResource = StripeUiCoreR.drawable.stripe_ic_paymentsheet_pm_paypal,
lightThemeIconUrl = null,
darkThemeIconUrl = null,
paymentMethodCreateParams = PaymentMethodCreateParamsFixtures.PAYPAL,
paymentMethodCreateParams = PaymentMethodCreateParamsFixtures.P24,
customerRequestedSave = PaymentSelection.CustomerRequestedSave.NoRequest
)

// Paypal PaymentIntent does not require a mandate, but paypal SetupIntent does
val newState = mockPaymentSheetStateWithSetupIntent(
paymentMethodTypes = listOf("card", "paypal"),
paymentMethodTypes = listOf("card", "p24"),
customerPaymentMethods = PaymentMethodFixtures.createCards(3),
)

Expand Down

0 comments on commit f339063

Please sign in to comment.