Skip to content

Payment methods

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
code
string
The payment method or credit card code. Supported codes include visa, mastercard, amex, discover, paypal, and others.
width
integer
The width of the output image in pixels. Accepts values between 0-2000.
height
integer
The 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