Link to Youtube Video (visible only when JS is disabled)
Every extra second or unfamiliar screen at checkout increases the chance a shopper abandons their cart. For years, adding a payment button meant managing static image files, translating button text for dozens of languages, and adjusting custom styles to pass brand review.
With the dynamic Google Pay button (available through the PayButton API on Android and the createButton API on Web), a single component handles styling, localization, and dynamic card previews automatically. Here is what global payment service provider PayerMax is seeing in production after making the switch, why dynamic card previews work, and how you can upgrade your checkout in a few minutes.
As a global payment service provider (PSP) serving merchants across 150+ countries globally, PayerMax renders the dynamic Google Pay button across its hosted checkout pages. When shoppers choose Google Pay on a merchant storefront and are redirected to a PayerMax hosted checkout page to confirm their order, the button immediately displays their saved card network and last four digits, removing checkout hesitation and giving users the confidence to complete their payment in a single, secure tap.
"PayerMax: +6.3% checkout conversion uplift and +3.8% Payment Success Rate (PSR)": "Every moment of hesitation on the checkout page can mean a lost order. We are committed to helping merchants boost payment conversion: with the dynamic Google Pay button, shoppers see their familiar, go-to card before they even click, giving them instant confidence and turning more intent into completed transactions. PayerMax works closely with the Google Pay team to bring the latest payment experiences to our merchants right away." (Ken, Global Head of Product at PayerMax)
When a shopper has an eligible card saved to their Google Account, the dynamic Google Pay button displays the card network and the last four digits of their most recently used card directly on the button.
Showing that familiar card preview signals to shoppers before they even tap that they can pay in one click with Google Pay using their saved card (with the option to switch cards in the payment sheet if needed). Across Google Pay integrations on Android and Web, surfacing this dynamic card preview consistently reduces abandonment after shoppers open the Google Pay payment sheet (including up to a 36% relative reduction in payment sheet abandonment on Android).
Beyond lifting conversion, the dynamic button removes the maintenance work of building and updating payment buttons by hand:
On Android with Jetpack Compose (compose-pay-button), rendering the dynamic button takes a single composable:
import com.google.pay.button.ButtonTheme
import com.google.pay.button.ButtonType
import com.google.pay.button.PayButton
PayButton(
onClick = { requestPayment() },
allowedPaymentMethods = PaymentsUtil.allowedPaymentMethods.toString(),
theme = ButtonTheme.Dark,
type = ButtonType.Buy,
cornerRadius = 100.dp,
)
On the Web, the createButton API and our open-source wrappers in google-pay/google-pay-button (for React, Angular, and Custom Elements) enable dynamic card previews by default whenever buttonType is set to buy (or any descriptive label other than plain or short).
You can test the dynamic button and migrate your checkout UI in a few minutes: