Git Product home page Git Product logo

paysera's People

Contributors

minvs1 avatar tadast avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

paysera's Issues

getting argument error

Parameters: {"accept"=>nil, "data"=>"YW1vdW50PTEwMDAmY291bnRyeT1MVCZjdXJyZW5jeT1FVVImb3JkZXJpZD0xJnByb2plY3RpZD03MTM4MSZ0ZXN0PTEmdmVyc2lvbj0xLjYmbGFuZz1lbmcmcGF5bWVudD13YWxsZXQmcGF5dGV4dD1PcmRlcitObyUzQSsxK2F0K2h0dHAlM0ElMkYlMkYwLjAuMC4wK3Byb2plY3QuKyUyOFNlbGxlciUzQStBbmRyaXMrJUM0JThDZWtzdGVycyUyOSZwX2VtYWlsPWFrc2hheXl1dmFzb2Z0MTI5JTQwZ21haWwuY29tJnN0YXR1cz0xJnJlcXVlc3RpZD04MzU5Nzc4MCZwYXlhbW91bnQ9MTAwMCZwYXljdXJyZW5jeT1FVVI=", "ss1"=>"bd4c502ba67e23caea0119e81e84aac1", "ss2"=>"qjRhI1EIRQLciQMBuGMFZKEuvvgO6ESOv_CeK1ejughqSVx78KkSAom1UTW0JVgy9_aI3Nq7yBg4vo5zRbeHg7TD7VrwwaKsJr3zCN88CcCDw6GT8BFyiMD0AxSxANV5jNaDPdv0hl2cD_x1PPqmwgTFH1bgXt2SHUu1ARji95I="}

I am unable to get response getting below error
ArgumentError Exception: wrong number of arguments (3 for 1)
on
response =Paysera::Response.new( params, * , '*******************')

When i tried with
Paysera::Response.new( params)
I am getting error
*** Paysera::Error::Response Exception: Unable to verify 'ss1'
I noticed that
PAYSERA_PUBLIC_KEY = 'http://downloads.paysera.com/download/public.key' is absent

Failing tests

First of all, thanks for the gem, it saved me a bunch of time :)

Praise aside, I'm getting to failures when running the project test suite:

Failures:

  1) Paysera::Response#bank? when sms response should equal false
     Failure/Error: it { expect(sms_response.bank?).to be false }

       expected false
            got true
     # ./spec/response_spec.rb:71:in `block (4 levels) in <top (required)>'

  2) Paysera::Response#sms? when bank response should equal true
     Failure/Error: it { expect(sms_response.sms?).to be true }

       expected true
            got false
     # ./spec/response_spec.rb:85:in `block (4 levels) in <top (required)>'

Finished in 1.81 seconds (files took 0.13569 seconds to load)
21 examples, 2 failures

Failed examples:

rspec ./spec/response_spec.rb:71 # Paysera::Response#bank? when sms response should equal false
rspec ./spec/response_spec.rb:85 # Paysera::Response#sms? when bank response should equal true

I didn't have much time to investigate, so just wanted to raise your attention to that. If you have any pointers of why this may be happening, let me know.

Does this validate response domain?

I dig trought your code and it looks like it doesnt validate domain from which the response are reaceaved(callbackUrl).

So in theory, anybody could make a request by themselves and accept/complete the payment, without even paying?

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.