Giter Site home page Giter Site logo

weldonsouza / cielo_ecommerce Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 5.0 194 KB

Pacote para criar pagamentos usando o SDK da API Cielo e-Commerce. Para mais informações acesse a documentação oficial da Cielo e-Commerce para desenvolvedores.

License: MIT License

Dart 98.40% Kotlin 0.35% Swift 1.14% Objective-C 0.11%

cielo_ecommerce's People

Contributors

julianodportela avatar weldonsouza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cielo_ecommerce's Issues

Ausência de testes e documentação

Acredito que testes deveriam ser criados urgentemente porque o package já tem um número considerável de arquivos e linhas o que torna sucetível a erros.
Além disso falta documentação, pois existem 400+ elementos públicos sem serem documentados (como descrito no Analysis tab

debito

como eu faria pra que aceitasse cartoes de debito tambem.

reponse null

Estou testando conforme o exemplo e o retorno sempre é null. Este pacote esta sendo usado? Alguém passou por este problema?

Unhandled Exception: type 'String' is not a subtype of type 'List<dynamic>' in type cast

Aparentemente, o método _getErrorDio não funciona mais. Estou tentando a horas fazer funcionar mas nunca consigo. Será que alguem poderia me ajudar?

Esse é o método:

_getErrorDio(DioError e) {
    if (e?.response != null) {
      List<CieloError> errors =
      (e.response.data as List).map((i) => CieloError.fromJson(i)).toList();
      throw CieloException(errors, e.message);
    } else {
      throw CieloException(
          List<CieloError>()..add(CieloError(code: 0, message: "unknown")),
          e.message);
    }
  }

Exception ao gerar boleto

I/flutter (22235): Operação por Boleto
I/flutter (22235): Gerando boleto....
E/flutter (22235): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: NoSuchMethodError: Class '_CastError' has no instance getter 'message'.
E/flutter (22235): Receiver: Instance of '_CastError'
E/flutter (22235): Tried calling: message
E/flutter (22235): #0      Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5)
E/flutter (22235): #1      CieloEcommerce.createSale (package:cielo_ecommerce/src/cieloecommerce.dart:29:26)
E/flutter (22235): <asynchronous suspension>
E/flutter (22235): #2      Tentar.makePayment (package:loja_virtual/tentativa.dart:46:24)
E/flutter (22235): <asynchronous suspension>

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.