Coder Social home page Coder Social logo

D/plugins.madbrains.ru/mad_pay_channel(10071): ignoring exception: java.lang.IllegalStateException: Reply already submitted. See https://github.com/flutter/flutter/issues/29092 for details. about mad-pay-flutter HOT 5 OPEN

madbrains avatar madbrains commented on June 10, 2024
D/plugins.madbrains.ru/mad_pay_channel(10071): ignoring exception: java.lang.IllegalStateException: Reply already submitted. See https://github.com/flutter/flutter/issues/29092 for details.

from mad-pay-flutter.

Comments (5)

mit-73 avatar mit-73 commented on June 10, 2024

Здравствуйте @FeofanGreek, скажите пожалуйста какую версию mad_pay и flutter вы используете?

from mad-pay-flutter.

FeofanGreek avatar FeofanGreek commented on June 10, 2024

from mad-pay-flutter.

FeofanGreek avatar FeofanGreek commented on June 10, 2024

Пример моей реализации

`final MadPay pay = MadPay(environment: Environment.test);

GooglePayButton(
environment: Environment.test,
type: GooglePayButtonType.plain,
request: PaymentRequest.google(
google: GoogleParameters(
gatewayName: 'tinkoff',
gatewayMerchantId: 'DEMO',
merchantId: '
**',
),
currencyCode: 'RUB',
countryCode: 'RU',
paymentItems: [
PaymentItem(name: 'T-Shirt', price: 11.00),
],
paymentNetworks: [
PaymentNetwork.visa,
PaymentNetwork.mastercard,
PaymentNetwork.mir,
PaymentNetwork.maestro
]
),
onPaymentResult: (PaymentResponse? req) async {
print(1);
const String terminalKey = 'DEMO';
const String password = '
';
String customerKey = userId.toString();
final TinkoffAcquiring acquiring = TinkoffAcquiring(
TinkoffAcquiringConfig(
terminalKey: terminalKey,
password: password,
debug: false,
),
);
final InitResponse init = await acquiring.init(InitRequest(
orderId: orderNum, // id заказа
customerKey: customerKey, // ключ продовца
amount: amount, // сумма в копейках
//… // другие параметры
));
// производим оплату
final FinishAuthorizeResponse fa =
await acquiring.finishAuthorize(FinishAuthorizeRequest(
paymentId: int.parse(init.paymentId!),
// id из платежной сессии
encryptedPaymentData: req!.token,
// данные из Apple/Google Pay
route: Route.Route.acq,
source: Source.googlePay // ApplePay или GooglePay
//… // другие параметры
));
// Проверяем есть ли запрос на прохождение классической провер
final Completer<Submit3DSAuthorizationResponse?> webView =
Completer<Submit3DSAuthorizationResponse?>();
if (fa.status == Status.threeDsChecking) {
Navigator.of(context).push(MaterialPageRoute(
builder: (BuildContext context) =>
Scaffold(
body: WebView3DS(
config: acquiring.config,
is3DsVersion2: fa.is3DsVersion2 ,
serverTransId: fa.serverTransId ,
acsUrl: fa.acsUrl!,
md: fa.md,
paReq: fa.paReq,
acsTransId: fa.acsTransId,
//version: check3DSVersion.version,
onLoad: (bool v) {
debugPrint('WebView load: $v');
},
onFinished: (
Submit3DSAuthorizationResponse? v) {
Navigator.of(context).pop();
webView.complete(v);
},
),
),
));
} else {
webView.complete(null);
}
},
onError: (Object? e) {
print(e);
},
)`

from mad-pay-flutter.

FeofanGreek avatar FeofanGreek commented on June 10, 2024

IMG_0202
D/plugins.madbrains.ru/mad_pay_channel(25255): ignoring exception: java.lang.IllegalStateException: Reply already submitted. See flutter/flutter#29092 for details.

from mad-pay-flutter.

mit-73 avatar mit-73 commented on June 10, 2024

@FeofanGreek к сожалению мы не смогли воспроизвести вашу проблему. Скажите пожалуйста проблема все еще актуальна?

from mad-pay-flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.