GooglePayBaseParams: {
    testEnv: boolean;
    merchantCountryCode: string;
    currencyCode: string;
    merchantName?: string;
    isEmailRequired?: boolean;
    allowCreditCards?: boolean;
    existingPaymentMethodRequired?: boolean;
    billingAddressConfig?: {
        isRequired?: boolean;
        isPhoneNumberRequired?: boolean;
        format?: BillingAddressFormat;
    };
    label?: string;
    amount?: number;
}

Type declaration

  • testEnv: boolean

    Set to true to run in a test environment with relaxed application / merchant requirements. This environment is suggested for early development and for easily testing SDK.

    • Does not require the application to be uploaded to the Google Play Store.
    • Does not require a Google Pay Developer Profile.
    • It uses production data, but at the end of the transaction you will receive a fake and non chargeable payment credential.
    • The user will see a warning message that the app is not recognized/verified.
  • merchantCountryCode: string

    ISO 3166-1 alpha-2 country code where the transaction is processed.

  • currencyCode: string

    ISO 4217 alphabetic currency code.

  • OptionalmerchantName?: string

    Your merchant name, displayed in the Google Pay sheet.

  • OptionalisEmailRequired?: boolean

    Set to true to request an email address. Defaults to false.

  • OptionalallowCreditCards?: boolean

    Set to false if you don't support credit cards. Defaults to true.

  • OptionalexistingPaymentMethodRequired?: boolean

    If true, Google Pay is considered "available" if the customer's Google Pay wallet has an existing payment method. Defaults to false.

  • OptionalbillingAddressConfig?: {
        isRequired?: boolean;
        isPhoneNumberRequired?: boolean;
        format?: BillingAddressFormat;
    }

    Describes the configuration for billing address collection in the Google Pay sheet.

    • OptionalisRequired?: boolean

      Set to true if billing address is required for payment. Defaults to false.

    • OptionalisPhoneNumberRequired?: boolean

      Set to true if phone number is required for payment. Defaults to false.

    • Optionalformat?: BillingAddressFormat

      Defines what address fields to collect. Defaults to BillingAddressFormat.Min

  • Optionallabel?: string

    An optional label to display with the amount. Google Pay may or may not display this label depending on its own internal logic. Defaults to a generic label if none is provided.

  • Optionalamount?: number

    An optional amount to display for setup intents. Google Pay may or may not display this amount depending on its own internal logic. Defaults to 0 if none is provided. Provide this value in the currency’s smallest unit.

MMNEPVFCICPMFPCPTTAAATR