Skip to content

Commit

Permalink
sorted styling inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
admin committed Oct 31, 2009
1 parent 211f8ca commit 16edac3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/active_merchant/billing/gateways/paypal_adaptive_payments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,27 @@ def initialize(options = {})
end

def pay(options)
commit('Pay', build_adaptive_payment_pay_request(options))
commit 'Pay', build_adaptive_payment_pay_request(options)
end

def details_for_payment options
commit('PaymentDetails', build_adaptive_payment_details_request(options))
commit 'PaymentDetails', build_adaptive_payment_details_request(options)
end

def refund options
commit('Refund', build_adaptive_refund_details(options))
commit 'Refund', build_adaptive_refund_details(options)
end

def preapprove_payment options
commit('Preapproval', build_preapproval_payment(options))
commit 'Preapproval', build_preapproval_payment(options)
end

def preapproval_details_for options
commit('PreapprovalDetails', build_preapproval_details(options))
commit 'PreapprovalDetails', build_preapproval_details(options)
end

def convert_currency options
commit 'ConvertCurrency', build_currency_conversion(options)
end

#debug method, provides a
Expand Down Expand Up @@ -194,7 +195,7 @@ def build_currency_conversion options
@xml = ''
xml = Builder::XmlMarkup.new :target => @xml, :indent => 2
xml.instruct!
xml.PayRequest do |x|
xml.ConvertCurrencyRequest do |x|
x.requestEnvelope do |x|
x.detailLevel 'ReturnAll'
x.errorLanguage opts[:error_language] ||= 'en_US'
Expand Down

0 comments on commit 16edac3

Please sign in to comment.