Skip to main content

Payment

Checkout displays the payment methods available to the buyer, including digital wallets, credit cards, buy-now-pay-later plans, and regional options. Use these targets to add contextual messaging, security details, or incentives based on which methods are available and what the buyer has selected.

Payment targets are read-only for payment selection. Extensions can read available and selected payment methods but can't modify the list, pre-select options, or reorder or hide methods. Write operations at these targets are cart-scoped: notes, metafields, discount codes, and gift card codes.

  • Express checkout promotion: Promote wallet options like Apple Pay or Google Pay when they're available to the buyer.
  • Installment plan details: Display information about deferred payment options when they're offered, such as how the installment plan works.
  • Credit card security: Display encryption assurances or purchase protection details when a credit card is selected, so buyers feel confident entering their card details.
  • Gift card or store credit: Display messaging when gift-card or store-credit payment options are available, such as instructions on how to apply them.

Use these targets to add content that helps buyers understand and choose their payment method.

purchase.checkout.payment-method-list.render-before

Renders before the list of payment methods. Use this target to display messaging that applies to all payment options before the buyer makes a selection.

Read available payment options through shopify.availablePaymentOptions and the buyer's current selection through shopify.selectedPaymentOptions. Both update reactively as the buyer interacts with payment choices.

Support
Components (55)
APIs (24)

purchase.checkout.payment-method-list.render-after

Renders below the list of payment methods. Use this target for content that responds to the buyer's payment selection, such as security details or payment-specific messaging.

Support
Components (55)
APIs (24)

  • Check payment method availability: Not all payment methods are available to every buyer. Read shopify.availablePaymentOptions to confirm the relevant payment type is offered before displaying type-specific messaging. Without this check, type-specific content can appear for payment methods the buyer can't use.
  • Match target to intent: Use render-before for messaging about available payment options before the buyer selects. Use render-after for content that responds to the buyer's selection, such as security details for a specific payment type.
  • Keep content brief at the payment step: The payment step is where buyers enter sensitive information. Keep content before and after the payment list brief to avoid distracting from the payment flow.
  • Don't recreate native payment UI: Checkout renders each payment method's own interactive UI. Adding buttons, form fields, or selection controls at these targets can confuse buyers about where to complete their payment.

Was this page helpful?