Docs
Skip to content

Avatars

Payment methods_

Retrieve payment method logos for checkout flows and transaction displays.

1 min read

Raw

The payment method endpoint provides access to logos for popular payment methods and credit card brands. This is useful for displaying accepted payment methods in checkout flows, transaction history, and payment settings.

Get payment method logo

Retrieve a payment method or credit card logo by code.

Parameters

The getCreditCard method accepts the following parameters:

ParameterTypeDescription
codestringThe payment method or credit card code. Supported codes include visa, mastercard, amex, discover, paypal, and others.
widthintegerThe width of the output image in pixels. Accepts values between 0-2000.
heightintegerThe height of the output image in pixels. Accepts values between 0-2000.

Supported payment methods

Common payment method codes include:

Use cases

Payment method logos are commonly used for:

  • Checkout flows: Display accepted payment methods during checkout
  • Payment settings: Show saved payment methods in user account settings
  • Transaction history: Display payment method used for each transaction
  • Subscription management: Show payment methods associated with subscriptions
  • Billing information: Display payment method logos in invoices and receipts

Was this page helpful?

Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.