A Google Pay specific client.

Hierarchy

  • GooglePayClient

Methods

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

    Parameters

    • options: GooglePayButtonOptions

      Options for the Google Pay payment button. The allowed payment methods should be automatically set by the client.

    Returns HTMLElement

    The generated payment button.

  • 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.