//[ui](../../../index.md)/[com.yandex.payment.sdk.ui.view.payment](../index.md)/[PaymentButtonView](index.md)/[setState](set-state.md)

# setState

[ui]\
fun [setState](set-state.md)(state: [PaymentButtonView.State](-state/index.md))

Задать состояние кнопки.

## Parameters

ui

| | |
|---|---|
| state | новое состояние. |
