Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

support MultiUse tokens

  • Loading branch information...
commit f64590fd24c6a0ac9fb3b4ad92e1a54eb6095526 1 parent 0c53e66
@donpdonp donpdonp authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/boomerang.rb
View
6 lib/boomerang.rb
@@ -52,6 +52,8 @@ def cbui_form(pipeline, parameters)
%w[callerReference recipientPaysFee]
when "Recurring"
%w[callerReference recurringPeriod transactionAmount]
+ when "MultiUse"
+ %w[callerReference globalAmountLimit recipientTokenList]
end
required_fields.each do |required_field|
unless parameters[required_field]
@@ -59,6 +61,10 @@ def cbui_form(pipeline, parameters)
end
end
+ if pipeline == "MultiUse" && parameters["recipientTokenList"].is_a?(Array)
+ parameters["recipientTokenList"] = parameters["recipientTokenList"].join(',')
+ end
+
url = ENDPOINTS[use_sandbox? ? :cbui_sandbox : :cbui]
signature = Signature.new("GET", url, parameters)
signature.sign(@access_key_id, @secret_access_key)
Please sign in to comment.
Something went wrong with that request. Please try again.