npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@exisia/medusa-payment-icons

v0.0.1

Published

Payment method icons and labels for Stripe payment methods, CDN-ready via jsDelivr

Readme

@exisia/medusa-payment-icons

Payment method icons and labels for Stripe payment methods, CDN-ready via jsDelivr.

Features

  • 🎨 32+ Payment Method Icons - Official SVG icons for all major Stripe payment methods
  • 🌐 CDN-Ready - Icons automatically served via jsDelivr CDN
  • 📦 TypeScript Support - Full TypeScript types included
  • 🔄 Auto-Updates - Icons update automatically when you publish new package versions
  • 🎯 Stripe Compatible - Uses official Stripe payment method type names

Installation

npm install @exisia/medusa-payment-icons

Usage

Get Payment Method Info

import { getPaymentMethodInfo } from '@exisia/medusa-payment-icons'

const info = getPaymentMethodInfo('paypal')
// Returns: { type: 'paypal', label: 'PayPal', icon: 'https://cdn.jsdelivr.net/npm/@exisia/medusa-payment-icons@latest/icons/paypal.svg' }

Get Icon URL Only

import { getIconUrl } from '@exisia/medusa-payment-icons'

const iconUrl = getIconUrl('apple_pay')
// Returns: 'https://cdn.jsdelivr.net/npm/@exisia/medusa-payment-icons@latest/icons/apple_pay.svg'

Use in React/HTML

import { getIconUrl } from '@exisia/medusa-payment-icons'

function PaymentMethodIcon({ type }: { type: string }) {
  const iconUrl = getIconUrl(type)
  if (!iconUrl) return null
  
  return <img src={iconUrl} alt={type} />
}

Direct CDN Access

You can also access icons directly via CDN:

https://cdn.jsdelivr.net/npm/@exisia/medusa-payment-icons@latest/icons/{payment-method}.svg

Example:

  • https://cdn.jsdelivr.net/npm/@exisia/medusa-payment-icons@latest/icons/paypal.svg
  • https://cdn.jsdelivr.net/npm/@exisia/medusa-payment-icons@latest/icons/apple_pay.svg

Supported Payment Methods

Wallets

  • Apple Pay (apple_pay)
  • Google Pay (google_pay)
  • Cash App Pay (cashapp)
  • Revolut Pay (revolut_pay)
  • Amazon Pay (amazon_pay)

Buy Now, Pay Later

  • Affirm (affirm)
  • Afterpay / Clearpay (afterpay_clearpay)
  • Klarna (klarna)

Bank Debits

  • BECS Direct Debit (au_becs_debit)
  • BACS Direct Debit (bacs_debit)
  • US Bank Account (us_bank_account)
  • SEPA Direct Debit (sepa_debit)

European Payment Methods

  • iDEAL (ideal)
  • Bancontact (bancontact)
  • EPS (eps)
  • Przelewy24 (p24)
  • BLIK (blik)

Asian Payment Methods

  • Alipay (alipay)
  • WeChat Pay (wechat_pay)
  • GrabPay (grabpay)
  • PayNow (paynow)
  • PromptPay (promptpay)
  • FPX (fpx)
  • Konbini (konbini)

Latin American Payment Methods

  • Boleto (boleto)
  • OXXO (oxxo)
  • Pix (pix)

Card Brands

  • Visa (visa)
  • Mastercard (mastercard)
  • American Express (amex)
  • JCB (jcb)

Other

  • PayPal (paypal)

API Reference

getPaymentMethodInfo(type?: string | null): PaymentMethodInfo | null

Returns complete payment method information including type, label, and icon URL.

Parameters:

  • type - Stripe payment method type (e.g., 'paypal', 'apple_pay')

Returns:

{
  type: string
  label: string
  icon: string | null
} | null

getIconUrl(key?: string | null): string | null

Returns the CDN URL for a payment method icon.

Parameters:

  • key - Stripe payment method type (e.g., 'paypal', 'apple_pay')

Returns:

  • CDN URL string or null if key is not provided

How It Works

  1. Icons are stored as SVG files in the icons/ directory
  2. When published to npm, jsDelivr automatically makes them available via CDN
  3. The package provides TypeScript functions to get the correct icon URLs
  4. Icons update automatically across all your apps when you publish a new version

License

MIT

Author

Exisia OÜ

Repository

https://gitlab.com/exisia/medusajs/packages/medusa-payment-icons