Giter Club home page Giter Club logo

cloudpayments's People

Contributors

shushper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cloudpayments's Issues

Platform Exception

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):

Оплата проходит успешно, а метод возвращает ошибку

Произошло следующее событие.
Юзер нажал на оплату в момент когда интернет соединение работало нормально, далее интернет пропадает
и выходит след. ошибка в ответе от 'https://api.cloudpayments.ru/payments/cards/auth' запроса:

Снимок экрана 2023-01-11 в 17 35 30

проблема в том что приходит квитанция об оплате и списание средств.

show3ds does not catch other errors, and as a result, the function does not work.

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.

Неверный ответ от show3ds

Если в форме оплаты нажать на кнопку "Отменить", то возвращается моделька где success=true и данные md и paRes, как будто прошла оплата успешно
Если же выйти из формы нативной кнопкой "назад", то response=null и это правильно поведение
Можно ли с при нажатии на "Отменить" сделать подобное поведение??

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.