Ir a contenido
Crea una cuenta
o
Inicia sesión
Logotipo de Stripe Docs
/
Pregúntale a la IA
Crear una cuenta
Iniciar sesión
Empieza ahora
Pagos
Ingresos
Plataformas y marketplaces
Gestión del dinero
Recursos para desarrolladores
Resumen
Acerca de Stripe Payments
Actualiza tu integración
Análisis de pagos
Pagos electrónicos
ResumenEncuentra tu caso de usoPagos administrados
Usa Payment Links
Crea una página del proceso de compra
Desarrolla una integración avanzada
    Resumen
    Inicio rápido
    Diseña una integración avanzada
    Personaliza el estilo
    Gestiona los métodos de pago
      Acepta un pago con el Express Checkout Element
      Agrega métodos de pago personalizados
      Personaliza los métodos de pago
      Guardar y recuperar métodos de pago del cliente
    Recopila información adicional
    Cobra impuestos sobre tus pagos
    Guarda el método de pago usado para un pago
    Guarda el método de pago sin realizar un pago
    Envía recibos y facturas pagadas
Desarrolla una integración en la aplicación
Métodos de pago
Agrega métodos de pago
Gestiona los métodos de pago
Finalización de compra más rápida con Link
Interfaces de pago
Payment Links
Checkout
Elements para la web
Elements en la aplicación
Escenarios de pago
Administrar varias monedas
Flujos de pago personalizados
Capacidad adquirente flexible
Orquestación
Pagos en persona
Terminal
Más allá de los pagos
Constituye tu empresa
Criptomonedas
Financial Connections
Climate
Comprender el fraude
Protección contra fraudes de Radar
Gestionar disputas
Verificar identidades
InicioPagosBuild an advanced integrationManage payment methods

Customize payment methods

Choose how the Payment Element displays payment methods.

The Payment Element supports many payment methods. It displays the payment methods you enabled, hides any that won’t work for the current transaction, and sorts them dynamically for the best conversion rates.

You can customize its behavior in these ways:

  • Enable different payment methods.
  • Sort payment methods differently than the default.
  • Limit the number of payment methods displayed.

Enable different payment methods

You can specify Dynamic payment methods to enable different payment methods by selecting them in the Dashboard. Stripe enables this functionality by default in the latest version of the API.

This allows Stripe to pull your payment method preferences from the Dashboard to dynamically show the most relevant payment methods to your customers. Alternatively, you can list payment methods manually using payment method types.

There’s one situation where the Payment Element overrides your choice. It hides payment methods that don’t support the current payment. For instance, in a recurring payment for 10 JPY, the Payment Element hides methods that don’t support JPY or recurring payments.

Sort payment methods

By default, the Payment Element uses dynamic ordering to optimize which payment methods appear for each user. With the paymentMethodOrder parameter, you can override the default order for payment methods in the Payment Element, including Apple Pay and Google Pay.

Payment methods that you specify in paymentMethodOrder are shown first, followed by any additional payment methods. If you specify payment method types that Stripe wouldn’t show, they’re ignored.

elements.create('payment', { paymentMethodOrder: ['apple_pay', 'google_pay', 'card', 'klarna'] });

You can include Apple Pay (apple_pay) and Google Pay (google_pay) when setting the order for payment methods in addition to a full list of payment method types. When you specify sorting, Stripe applies dynamic ordering to any remaining available payment methods.

Consideraciones regionales
Finlandia
Suecia

Regulations in Finland and Sweden require that debit payment methods must be presented before credit payment methods at checkout in those countries.

Limit the number of payment methods

When you use the accordion layout, the Payment Element displays up to five payment methods by default and hides the rest behind a More button.

To adjust the number of payment methods you want to display, set the layout.visibleAccordionItemsCount property.

elements.create('payment', { layout: { type: 'accordion', // Set a different default, or set to 0 to disable the // "More" button and render all available Payment Methods visibleAccordionItemsCount: 3 } });
¿Te fue útil esta página?
SíNo
  • ¿Necesitas ayuda? Ponte en contacto con soporte.
  • Únete a nuestro programa de acceso anticipado.
  • Echa un vistazo a nuestro registro de cambios.
  • ¿Tienes alguna pregunta? Contacto.
  • ¿LLM? Lee llms.txt.
  • Con tecnología de Markdoc