yandex_pay_core
Core SDK for the Yandex Pay Flutter modular architecture. Provides:
YPay— singleton for initialization, locale/theme updates, and lifecycle (initialize,updateConfiguration,clear).ModuleRegistry— extension point used by flow modules (yandex_pay_quickpay,yandex_pay_auth, future modules) to register themselves with core.- Deeplink handling —
YPay.instance.deeplinkHandler.handleOpenURL/handleUserActivity(iOS) and Android intent forwarding. - Shared models —
YPayEnvironment,YPayLocale,YPayTheme,YPayMerchant.
Most apps do not depend on this package directly. Add a flow module (e.g.
yandex_pay_quickpay) andyandex_pay_corecomes transitively.
Usage
import 'package:yandex_pay_core/yandex_pay_core.dart';
import 'package:yandex_pay_quickpay/yandex_pay_quickpay.dart';
await YPay.initialize(
environment: YPayEnvironment.sandbox,
modules: [
quickPayModule(merchantId: 'your-merchant-id'),
],
);
Companion packages
yandex_pay_quickpay— QuickPay flow (payment methods widget, active method badge, expandable widget).yandex_pay_auth— optional auth module (authorize,logout, auth state stream).
Documentation
Full integration guide: https://pay.yandex.ru/docs/ru/custom/quickpay/flutter/
License
Proprietary. See LICENSE.