lib/processout/invoice.rb in processout-1.0.9 vs lib/processout/invoice.rb in processout-1.0.10
- old
+ new
@@ -293,10 +293,12 @@
self.prefill(options)
request = Request.new(@client)
path = "/invoices/" + CGI.escape(@id) + "/authorize"
data = {
+ "authorize_only" => options.fetch(:authorize_only, nil),
+ "synchronous" => options.fetch(:synchronous, nil),
"source" => source
}
response = Response.new(request.post(path, data, options))
return_values = Array.new
@@ -318,10 +320,12 @@
self.prefill(options)
request = Request.new(@client)
path = "/invoices/" + CGI.escape(@id) + "/capture"
data = {
+ "authorize_only" => options.fetch(:authorize_only, nil),
+ "synchronous" => options.fetch(:synchronous, nil),
"source" => source
}
response = Response.new(request.post(path, data, options))
return_values = Array.new
@@ -481,10 +485,11 @@
"statement_descriptor_company" => @statement_descriptor_company,
"statement_descriptor_url" => @statement_descriptor_url,
"request_email" => @request_email,
"request_shipping" => @request_shipping,
"return_url" => @return_url,
- "cancel_url" => @cancel_url
+ "cancel_url" => @cancel_url,
+ "customer_id" => options.fetch(:customer_id, nil)
}
response = Response.new(request.post(path, data, options))
return_values = Array.new