MadBrains / Tinkoff-Acquiring-SDK-Flutter

Flutter Tinkoff Acquiring SDK is a simple way to integrate payments into your mobile application.
https://pub.dev/packages/tinkoff_acquiring
MIT License
48 stars 17 forks source link

Статус 403 Forbidden в режиме Debug #31

Closed legush-pv closed 2 years ago

legush-pv commented 2 years ago

Использовал пример из вашего репозитория с ветки 3.0.6. На любое действие получаю ответ 403 Forbidden:

✓ Built build/app/outputs/flutter-apk/app-debug.apk. Installing build/app/outputs/flutter-apk/app.apk... Debug service listening on ws://127.0.0.1:38749/TdGsnNJGVJU=/ws Syncing files to device M2102J20SG... D/DecorView: onWindowFocusChanged hasWindowFocus true W/MirrorManager( 6953): this model don't Support [Tinkoff | Request URL] https://rest-api-test.tinkoff.ru/v2/Init [Tinkoff | Request headers] {content-type: application/json} [Tinkoff | RawRequest] {"Amount":1400,"OrderId":"26013","Language":"ru","CustomerKey":"user-key","PayType":"O","TerminalKey":"TestSDK","Token":"086c026c0d4e2f76cf9e62b415973bc6b7587382ea642ab4487fe41275ca4718"} E/flutter ( 6953): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: Forbidden E/flutter ( 6953): #0 NetworkClient.call (package:tinkoff_acquiring/src/utils/network_client.dart:85:7) E/flutter ( 6953): \<asynchronous suspension> E/flutter ( 6953): #1 _MyHomePageState._pay (package:example/main.dart:217:31) E/flutter ( 6953): \<asynchronous suspension> E/flutter ( 6953): #2 _MyHomePageState.build.\<anonymous closure> (package:example\/main.dart 100\:17) E/flutter ( 6953): \<asynchronous suspension> E/flutter ( 6953): [Tinkoff | RawResponse] 403 | \ \403 Forbidden\ \ \

\

403 Forbidden\

\
\
\
nginx\
\ \

mit-73 commented 2 years ago

Здравствуйте @UnknownFrom, TestSDK используется только для разработки. Если вы хотите протестировать работу, то подключите Интернет-эквайринг для вашего ИП и ООО или обратитесь в тех. поддержку: acq_help@tinkoff.ru