The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
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.tsxindex 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 providersexport 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")