samedi 11 juin 2016

Error Paysimple payment gateway integration

I am using gem 'paysimple-ruby' and require 'paysimple.rb' file in which using require 'paysimple' Paysimple.api_user = '' Paysimple.api_key = ' and when i am hitting customer = Paysimple::Customer.create({ first_name: 'John', last_name: 'Doe' }) this from console them getting given below error:

Digest::Digest is deprecated; use Digest Paysimple::APIError: (Status 403) Invalid response object from API: "n n n n nnAttention Required! | CloudFlarennnnnnnnbody{margin:0;padding:0}n</script>nnnnnnn n Please enable cookies.n n n One more stepn Please complete the security check to access api.paysimple.comn nn n n n n n n n n n n n https://www.google.com/recaptcha/api/fallback?k=6LfOYgoTAAAAAInWDVTLSc8Yibqp-c9DaLimzNGM&stoken=h9oM_KvnFGkc1zVNsCuNl2yvUVT1ZXkROJ8b9lbwkyANaRcg6fER6jaIKEO1txIDTH7FIBP9nxY_Xyw4m0v20PrNuVUyonsJAS4oMUpdz8U" frameborder="0" scrolling="no" style="width: 302px; height:422px; border-style: none;">n n n n n n n nnn n nn n n n n n n n n n nn n n n Why do I have to complete a CAPTCHA?nn Completing the CAPTCHA proves you are a human and gives you temporary access to the web property.

n nn n What can I do to prevent this in the future?nn If you are on a personal connection, like at home, you can run an anti-virus scan on your device to make sure it is not infected with malware.nn If you are at an office or shared network, you can ask the network administrator to run a scan across the network looking for misconfigured or infected devices.n n n nn n

n CloudFlare Ray ID: 2b056270d6642dc1n •n Your IP: 203.92.32.27n •n Performance & security by CloudFlaren n

nnnn n nn n window._cf_translation = {};n n nnnnn" (HTTP response code was 403) from /home/manoj.datt/.rvm/gems/ruby-2.2.1/gems/paysimple-ruby-0.2.0/lib/paysimple.rb:129:in rescue in handle_api_error' from /home/manoj.datt/.rvm/gems/ruby-2.2.1/gems/paysimple-ruby-0.2.0/lib/paysimple.rb:126:inhandle_api_error' from /home/manoj.datt/.rvm/gems/ruby-2.2.1/gems/paysimple-ruby-0.2.0/lib/paysimple.rb:69:in rescue in request' from /home/manoj.datt/.rvm/gems/ruby-2.2.1/gems/paysimple-ruby-0.2.0/lib/paysimple.rb:63:inrequest' from /home/manoj.datt/.rvm/gems/ruby-2.2.1/gems/paysimple-ruby-0.2.0/lib/paysimple/resources/customer.rb:5:in create' from (irb):5 from /home/manoj.datt/.rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/console.rb:110:instart' from /home/manoj.datt/.rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/console.rb:9:in start' from /home/manoj.datt/.rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:68:inconsole' from /home/manoj.datt/.rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in run_command!' from /home/manoj.datt/.rvm/gems/ruby-2.2.1/gems/railties-4.2.1/lib/rails/commands.rb:17:in' from bin/rails:4:in require' from bin/rails:4:in'

Aucun commentaire:

Enregistrer un commentaire