Skip to content

Commit

Permalink
committing changes suggested by Curt
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew authored and Matthew committed Dec 24, 2009
1 parent 4b0c22a commit ff3146c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions lib/active_merchant/billing/gateways/paypal_adaptive_payments.rb
@@ -1,10 +1,3 @@
=begin
**************************
**************************
=end

dir = File.dirname(__FILE__)
require dir + '/paypal_adaptive_payments/exceptions.rb'
require dir + '/paypal_adaptive_payments/adaptive_payment_response.rb'
Expand Down Expand Up @@ -93,10 +86,11 @@ def build_adaptive_payment_pay_request opts
x.receiverList do |x|
opts[:receiver_list].each do |receiver|
x.receiver do |x|
x.email receiver[:email]
x.amount receiver[:amount]
x.primary receiver[:primary] if receiver[:primary]
x.paymentType receiver[:payment_type] ||= 'GOODS'
x.email receiver[:email]
x.invoiceId receiver[:invoice_id] if receiver[:invoice_id]
end
end
end
Expand Down Expand Up @@ -143,8 +137,10 @@ def build_adaptive_refund_details options
options[:receiver_list].each do |receiver|
x.receiver do |x|
x.amount receiver[:amount]
x.primary receiver[:primary] ||= false
x.paymentType receiver[:payment_type] ||= 'GOODS'
x.invoiceId receiver[:invoice_id] if receiver[:invoice_id]
x.email receiver[:email]

end
end
end
Expand Down

0 comments on commit ff3146c

Please sign in to comment.