Comments (5)
Здравствуйте @FeofanGreek, скажите пожалуйста какую версию mad_pay и flutter вы используете?
from mad-pay-flutter.
from mad-pay-flutter.
Пример моей реализации
`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.
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.
@FeofanGreek к сожалению мы не смогли воспроизвести вашу проблему. Скажите пожалуйста проблема все еще актуальна?
from mad-pay-flutter.
Related Issues (20)
- Incorrect value for the [paymentToken.signature] parameter, verification failed HOT 4
- Samsung Pay HOT 3
- Getting message: "environments" is not supported by Apple Pay HOT 1
- How can i set multiple MerchantCapabilities? HOT 4
- Suggestion: allow to only supply single Platform (AppleParameters or GoogleParameters) HOT 2
- Compilation error HOT 6
- Typo for contact email address property HOT 1
- checkPayments crash HOT 2
- Q: can we exclude intermediateSigningKey from token string? HOT 1
- Not building for android on Apple silicon HOT 4
- An unexpected error has occured. Please try again later. [OR-BIBED_01] HOT 9
- MIR support for iOS HOT 1
- Is there test MerchantID we can use? HOT 1
- Depends on backend HOT 1
- Method get token of PaymentResponce class throws exception even if token does exist. HOT 1
- Failure delivering result ResultInfo
- dependencies conflict HOT 1
- Intl Package dependency
- ApplePayButton Not working when the app is live HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mad-pay-flutter.