shushper / cloudpayments Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Автору спасибо за реализацию! Планируется ли обновление с последней версией SDK Cloudpayments?
Thanks, I will try the package
What about Apple pay/Google pay?
I am getting platform exception when creating CloudPaymentGooglePay instance;
E/flutter (24585): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(GooglePayError, Couldn't create Payments Client, null, null)
E/flutter (24585): #0 StandardMethodCodec.decodeEnvelope
package:flutter/…/services/message_codecs.dart:597
E/flutter (24585): #1 MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:158
E/flutter (24585):
E/flutter (24585): #2 CloudpaymentsGooglePay._initGooglePay
package:cloudpayments/cloudpayments_google_pay.dart:20
E/flutter (24585):
E/flutter (24585):
Добрый день. Подскажите есть ли в планах сделать поддрежку для веба?
The connection errored: Failed host lookup: 'wp-demo.cloudpayments.ru' This indicates an error which most likely cannot be solved by the library.
Произошло следующее событие.
Юзер нажал на оплату в момент когда интернет соединение работало нормально, далее интернет пропадает
и выходит след. ошибка в ответе от 'https://api.cloudpayments.ru/payments/cards/auth' запроса:
проблема в том что приходит квитанция об оплате и списание средств.
Hello!
I tried to implement this library in my application. Payment without 3DS is successfully completed (although I had to rewrite a few lines), but as soon as it comes to payment with a 3DS request, everything breaks down. No logs, no error message. I decided to see how the show3ds method works, and I saw this:
static Future<ThreeDsResponse?> show3ds({
required String acsUrl,
required String transactionId,
required String paReq,
}) async {
try {
final dynamic arguments =
await _channel.invokeMethod<dynamic>('show3ds', {
'acsUrl': acsUrl,
'transactionId': transactionId,
'paReq': paReq,
});
if (arguments == null) {
return null;
} else {
return ThreeDsResponse(
success: true, md: arguments['md'], paRes: arguments['paRes']);
}
} on PlatformException catch (e) {
return ThreeDsResponse(success: false, error: e.message);
}
}
The problem is that the method does not catch other errors (except PlatformException ), so it does not return anything and does not take any action.
Если в форме оплаты нажать на кнопку "Отменить", то возвращается моделька где success=true и данные md и paRes, как будто прошла оплата успешно
Если же выйти из формы нативной кнопкой "назад", то response=null и это правильно поведение
Можно ли с при нажатии на "Отменить" сделать подобное поведение??
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.