minvs1 / paysera Goto Github PK
View Code? Open in Web Editor NEWThis gem provides easy access to Paysera payment API
License: MIT License
This gem provides easy access to Paysera payment API
License: MIT License
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
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.
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?
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.