//[ui](../../index.md)/[com.yandex.payment.sdk.ui.view.payment](index.md)/[getPaymentMethod](get-payment-method.md)

# getPaymentMethod

[ui]\
fun [SelectPaymentAdapter.Data](-select-payment-adapter/-data/index.md)?.[getPaymentMethod](get-payment-method.md)(): [PaymentMethod](../../../core/core/com.yandex.payment.sdk.core.data/-payment-method/index.md)

Вспомогательный метод для конвертации дефолтной [SelectPaymentAdapter.Data](-select-payment-adapter/-data/index.md) в [PaymentMethod](../../../core/core/com.yandex.payment.sdk.core.data/-payment-method/index.md).
