Code Monkey home page Code Monkey logo

epayco-ruby's People

Contributors

andres-duque avatar danielquiroz87 avatar dayan0101 avatar dayancmm avatar devepayco avatar gerson-epayco avatar juanfelmesa avatar juanhurtadopayco avatar prismaymedia avatar ricardosaldarriagapayco avatar romedu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

epayco-ruby's Issues

install the gem into rails

Is it possible to install the gem in a rails project:

Return error:

  In Gemfile:
    json (~> 2.0.0)

    rails (= 4.2.0) was resolved to 4.2.0, which depends on
      activesupport (= 4.2.0) was resolved to 4.2.0, which depends on
        json (>= 1.7.7, ~> 1.7)

    epayco-ruby was resolved to 0.0.5, which depends on
      json (~> 2.0)```

key not found: :ciphers

I started using the gem and first asked me for two other gems 'rest-client', '~> 1.7' and 'mime-types', '~>2.0', this three gem in my gemfile.
Then I put the "usage section" in my application.rb

require 'epayco-ruby'
Epayco.apiKey = 'PUBLIC_KEY'
Epayco.privateKey = 'PRIVATE_KEY'
Epayco.lang = 'ES'
Epayco.test = true

But when I call "plans = Epayco::Plan.list" I get the error of "key not found: :ciphers", I don't know what could be wrong, searching the internet, I found that it could be due to the 'rest-client', '~> 1.7' gem is a obsolete version. Any idea what might be happening?

ArgumentError: key must be 16 bytes when key is assigned to cipher

Hi, Epayco gave me a 32 bytes private key, but the cipher is using this mode AES-128-CBC, when the gem tries to execute the encryption process the cipher raises an error with key must be 16 bytes. OpenSSL since may 2016 is rejecting too long values in key/IV assignment...

curious thing is that the tests are also using a 32 bytes key, but I couldn't run the tests neither

what should I do, should I use AES-256-CBC mode or perhaps another codification for the key

any help is really appreciated

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.