feat(payments): phase #1 tests and part of implementation

This commit is contained in:
Anatoliy Poloz
2026-07-08 13:31:55 +03:00
parent 2ab26bbda5
commit d21cc46558
12 changed files with 195 additions and 26 deletions

View File

@@ -297,7 +297,7 @@ class ChatRoomCubit extends Cubit<ChatRoomState> {
try {
final planId = (state as ChatRoomStateLoaded).chatRoom.chosenPlan?.id;
if (planId == null) return null;
final paymentModel = await chatRepository.getPaymentLink(id: planId);
final paymentModel = await chatRepository.getPaymentLink(id: planId, paymentProvider: 'alfa-bank');
return paymentModel.paymentUrl;
} catch (e, st) {
await reportFrom(e, st, this);