Permalink
Browse files

Adding support for :single_use token forms.

  • Loading branch information...
JEG2 committed May 11, 2012
1 parent 0c53e66 commit 780f2aadbc1799613268c36296c951c57e477a93
Showing with 6 additions and 4 deletions.
  1. +1 −1 .rvmrc
  2. +2 −2 Rakefile
  3. +3 −1 lib/boomerang.rb
View
2 .rvmrc
@@ -1 +1 @@
-rvm 1.9.2
+rvm 1.9.3
View
@@ -1,6 +1,6 @@
-require "rake/gempackagetask"
+require "rubygems/package_task"
load(File.join(File.dirname(__FILE__), "boomerang.gemspec"))
-Rake::GemPackageTask.new(SPEC) do |package|
+Gem::PackageTask.new(SPEC) do |package|
# do nothing: I just need a gem but this block is required
end
View
@@ -11,7 +11,7 @@
require "boomerang/response"
class Boomerang
- VERSION = "0.0.2"
+ VERSION = "0.0.3"
ENDPOINTS = { cbui: "https://authorize.payments.amazon.com/" +
"cobranded-ui/actions/start",
cbui_sandbox: "https://authorize.payments-sandbox.amazon.com/" +
@@ -52,6 +52,8 @@ def cbui_form(pipeline, parameters)
%w[callerReference recipientPaysFee]
when "Recurring"
%w[callerReference recurringPeriod transactionAmount]
+ when "SingleUse"
+ %w[callerReference recipientToken transactionAmount]
end
required_fields.each do |required_field|
unless parameters[required_field]

0 comments on commit 780f2aa

Please sign in to comment.