Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'master' of github.com:phonostar/micropayment

  • Loading branch information...
commit 88a633aa7174e2647be068105f7f4f6ea879ce83 2 parents ed15869 + ba9f620
authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  lib/services/api.rb
5  lib/services/api.rb
@@ -15,7 +15,8 @@ def call(url, method, data={})
15 15
       ensure_api_key!
16 16
       data[:action]     = method
17 17
       data[:accessKey]  = Config.api_key
18  
-      data[:testMode] ||= Config.sandbox_param
  18
+      # Workaround micropayment API
  19
+      data[:testMode] ||= Config.sandbox_param ? 1 : 0
19 20
       data.delete_if {|k,v| v.nil? }
20 21
       uri = Addressable::URI.parse(url)
21 22
       uri.query_values = data
@@ -51,4 +52,4 @@ def parseNVP(text)
51 52
 
52 53
   end
53 54
 
54  
-end
  55
+end

0 notes on commit 88a633a

Please sign in to comment.
Something went wrong with that request. Please try again.