diff --git a/src/modules/checkout/components/payment-button/index.tsx b/src/modules/checkout/components/payment-button/index.tsx index 933cdff5c..327ffb85a 100644 --- a/src/modules/checkout/components/payment-button/index.tsx +++ b/src/modules/checkout/components/payment-button/index.tsx @@ -38,8 +38,8 @@ const PaymentButton: React.FC = ({ const paymentSession = cart.payment_collection?.payment_sessions?.[0] - switch (paymentSession?.provider_id) { - case "stripe": + switch (true) { + case paymentSession?.provider_id.startsWith("pp_stripe_"): return ( = ({ data-testid={dataTestId} /> ) - case "manual": - case "pp_system_default": + case paymentSession?.provider_id.startsWith("manual"): + case paymentSession?.provider_id.startsWith("pp_system_default"): return ( ) - case "paypal": + case paymentSession?.provider_id.startsWith("pp_paypal"): return (