A helper for working with Google Pay.

Hierarchy

  • GooglePayHelper

Methods

  • Generates a Google Pay payment button styled with the latest Google Pay branding for insertion into a webpage.

    Parameters

    Returns HTMLElement

  • Initiates a Google Pay payment.

    Returns Promise<PaymentData>

    A promise that contains the payment result.

  • Prefetches configuration to improve createPayment execution time on later user interaction.

    Returns Promise<void>

    A promise that contains no value.