From 7183fc5d7dc68c29aa76501bc3751bedf4ae455b Mon Sep 17 00:00:00 2001 From: Anatoliy Date: Wed, 8 Jul 2026 10:50:12 +0300 Subject: [PATCH] feat(sbp-payin): fixtures and banks assets added --- android/app/src/main/AndroidManifest.xml | 163 ++++++++++++++++++ ios/Runner/Info.plist | 51 ++++++ pubspec.yaml | 1 + .../chat/alfa_status_failed_response.json | 6 + .../chat/alfa_status_pending_response.json | 6 + .../chat/alfa_status_processing_response.json | 6 + .../chat/alfa_status_success_response.json | 6 + .../chat/payment_response_alfa_bank.json | 11 +- 8 files changed, 245 insertions(+), 5 deletions(-) create mode 100644 test/fixtures/chat/alfa_status_failed_response.json create mode 100644 test/fixtures/chat/alfa_status_pending_response.json create mode 100644 test/fixtures/chat/alfa_status_processing_response.json create mode 100644 test/fixtures/chat/alfa_status_success_response.json diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 116b494b..167f7b48 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -88,5 +88,168 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 30bbd104..c5522c3b 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -74,6 +74,57 @@ yandexauth yandexauth2 yandexauth4 + + bank100000000111 + bank100000000004 + bank100000000005 + bank100000000008 + bank100000000007 + bank100000000015 + bank100000000001 + bank100000000010 + bank100000000013 + bank100000000012 + bank100000000020 + bank100000000025 + bank100000000030 + bank100000000030_new + bank100000000003 + bank100000000043 + bank100000000028 + bank100000000086 + bank100000000011 + bank100000000044 + bank100000000049 + bank100000000500 + bank100000000095 + bank100000000900 + bank100000000056 + bank100000000053 + bank100000000121 + bank100000000082 + bank100000000127 + bank100000000017 + bank100000000087 + bank100000000052 + bank100000000006 + bank100000000098 + bank100000000092 + bank100000000229 + bank100000000027 + bank100000000080 + bank100000000122 + bank100000000124 + bank100000000118 + bank100000000159 + bank100000000146 + bank100000000069 + bank100000000140 + bank100000000047 + bank100000000099 + bank100000000135 + bank100000000139 + bank100000000022 YAClientId 5399b03636104c6d920b87c1ad329254 diff --git a/pubspec.yaml b/pubspec.yaml index 1c3c8489..509986fd 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -85,6 +85,7 @@ dependencies: intl_utils: ^2.8.13 sentry_dio: ^9.10.0 livekit_client: ^2.6.1 + sbp: ^0.1.1 dev_dependencies: build_runner: ^2.10.4 diff --git a/test/fixtures/chat/alfa_status_failed_response.json b/test/fixtures/chat/alfa_status_failed_response.json new file mode 100644 index 00000000..934b0487 --- /dev/null +++ b/test/fixtures/chat/alfa_status_failed_response.json @@ -0,0 +1,6 @@ +{ + "order_id": "alfa_c29_k15138_t1712345678_r1234", + "status": "failed", + "is_paid": false, + "is_expired": false +} diff --git a/test/fixtures/chat/alfa_status_pending_response.json b/test/fixtures/chat/alfa_status_pending_response.json new file mode 100644 index 00000000..d928665f --- /dev/null +++ b/test/fixtures/chat/alfa_status_pending_response.json @@ -0,0 +1,6 @@ +{ + "order_id": "alfa_c29_k15138_t1712345678_r1234", + "status": "pending", + "is_paid": false, + "is_expired": false +} diff --git a/test/fixtures/chat/alfa_status_processing_response.json b/test/fixtures/chat/alfa_status_processing_response.json new file mode 100644 index 00000000..08cb35c3 --- /dev/null +++ b/test/fixtures/chat/alfa_status_processing_response.json @@ -0,0 +1,6 @@ +{ + "order_id": "alfa_c29_k15138_t1712345678_r1234", + "status": "processing", + "is_paid": false, + "is_expired": false +} diff --git a/test/fixtures/chat/alfa_status_success_response.json b/test/fixtures/chat/alfa_status_success_response.json new file mode 100644 index 00000000..53be4cae --- /dev/null +++ b/test/fixtures/chat/alfa_status_success_response.json @@ -0,0 +1,6 @@ +{ + "order_id": "alfa_c29_k15138_t1712345678_r1234", + "status": "success", + "is_paid": true, + "is_expired": false +} diff --git a/test/fixtures/chat/payment_response_alfa_bank.json b/test/fixtures/chat/payment_response_alfa_bank.json index d8a1fbe9..85ba3bb2 100644 --- a/test/fixtures/chat/payment_response_alfa_bank.json +++ b/test/fixtures/chat/payment_response_alfa_bank.json @@ -1,5 +1,6 @@ - { - "checkout_url" : "https://qr.nspk.ru/ASDFASDFASDFASDF", - "payment_provider" : "alfa-bank", - "order_id" : "alfa_c29_k15138_t1712345678_r1234" - } \ No newline at end of file +{ + "checkout_url": "https://qr.nspk.ru/ASDFASDFASDFASDF", + "payment_provider": "alfa-bank", + "order_id": "alfa_c29_k15138_t1712345678_r1234", + "status_token": "abc123def456" +} \ No newline at end of file