Page History
...
| Code Block | ||
|---|---|---|
  | ||
function addGooglePayButton() {
  const paymentsClient = getGooglePaymentsClient();
  const button =
     paymentsClient.createButton({onClick: onGooglePaymentButtonClicked, buttonColor:'black', buttonType:'long'}); //создание кнопки
        document.getElementById('container').appendChild(button); //добавление кнопки на страницу
        document.getElementById('container').style.display = 'block';
} | 
| Warning | 
|---|
При настройке кнопки необходимо учитывать требования по брендированию Google.  |