Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

fix(storefront): detect Medusa Stripe card provider in isStripe (#1581)

Viktor Holik22ff03241d51
diff --git a/apps/storefront/src/lib/constants.tsx b/apps/storefront/src/lib/constants.tsx
index b2acffd6d..fb87ac6a4 100644
--- a/apps/storefront/src/lib/constants.tsx
+++ b/apps/storefront/src/lib/constants.tsx
@@ -5,10 +5,6 @@ export const paymentInfoMap: Record<
string,
{ title: string; icon: React.JSX.Element }
> = {
- "pp_card_stripe-connect": {
- title: "Credit card",
- icon: <CreditCard />,
- },
pp_stripe_stripe: {
title: "Credit card",
icon: <CreditCard />,
@@ -33,7 +29,7 @@ export const paymentInfoMap: Record<
// This only checks if it is native stripe for card payments, it ignores the other stripe-based providers
export const isStripe = (providerId?: string) => {
- return providerId?.startsWith("pp_card_stripe-connect")
+ return providerId?.startsWith("pp_stripe_")
}
export const isPaypal = (providerId?: string) => {
return providerId?.startsWith("pp_paypal")