When multiple payment methods are available in Checkout, end users are typically required to select their preferred option before completing a purchase. In some cases, you may want to streamline the checkout experience by automatically selecting a specific payment method by default.
This article explains how to customize the Checkout to pre-select a payment method using a custom script. In the example below, the script automatically selects Stripe Elements (stripe_elements) when checkout loads.
Important: Clients who have customized their Payment Components template should review and follow the guidance in this article to update their templates accordingly. This will help ensure compatibility with ongoing Piano enhancements and prevent potential disruptions as Piano continues to release new functionality.
In the Publisher Dashboard, go to Manage → Templates → System → Payment Components.
Find ]]>