Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions types/googlepay/googlepay-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ function addGooglePayButton() {
buttonOptions.buttonLocale = "qw";
buttonOptions.buttonLocale = "zh";

buttonOptions.buttonBorderType = "default_border";
buttonOptions.buttonBorderType = "no_border";

const client = getGooglePaymentsClient();
const button = client.createButton(buttonOptions);
document.appendChild(document.createElement("div").appendChild(button));
Expand Down
24 changes: 24 additions & 0 deletions types/googlepay/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1855,6 +1855,15 @@ declare namespace google.payments.api {
*/
buttonLocale?: string;

/**
* Specifies the border types for the Google Pay button.
*
* If omitted, defaults to `default_border`.
*
* @default "default_border"
*/
buttonBorderType?: ButtonBorderType | undefined;

/**
* List of allowed payment methods.
*
Expand Down Expand Up @@ -2154,6 +2163,21 @@ declare namespace google.payments.api {
| "long"
| "short";

/**
* Supported border types for the Google Pay button.
*
* Options:
*
* - `no_border`:
* "No border is displayed around the button.
*
* - `default_border`:
* "A thin border is displayed around the button. (default).
*/
type ButtonBorderType =
| "no_border"
| "default_border";

/**
* Supported methods for controlling the size of the Google Pay button.
*
Expand Down