//[core](../../../index.md)/[com.yandex.payment.sdk.core](../index.md)/[PaymentInitFactory](index.md)/[PaymentInitFactory](-payment-init-factory.md)

# PaymentInitFactory

[core]\
fun [PaymentInitFactory](-payment-init-factory.md)(context: Context, environment: [PaymentSdkEnvironment](../../com.yandex.payment.sdk.core.data/-payment-sdk-environment/index.md) = PaymentSdkEnvironment.PRODUCTION, consoleLoggingMode: [ConsoleLoggingMode](../../com.yandex.payment.sdk.core.data/-console-logging-mode/index.md) = ConsoleLoggingMode.AUTOMATIC, metricaInitMode: [MetricaInitMode](../../com.yandex.payment.sdk.core.data/-metrica-init-mode/index.md) = MetricaInitMode.CORE)
