lib/active_merchant/billing/gateways/payflow.rb in activemerchant-1.79.2 vs lib/active_merchant/billing/gateways/payflow.rb in activemerchant-1.80.0
- old
+ new
@@ -54,12 +54,12 @@
authorize(0, payment, options)
end
end
def verify_credentials
- response = void("0")
- response.params["result"] != "26"
+ response = void('0')
+ response.params['result'] != '26'
end
# Adds or modifies a recurring Payflow profile. See the Payflow Pro Recurring Billing Guide for more details:
# https://www.paypal.com/en_US/pdf/PayflowPro_RecurringBilling_Guide.pdf
#
@@ -250,12 +250,12 @@
CARD_MAPPING[card_brand(credit_card).to_sym]
end
def expdate(creditcard)
- year = sprintf("%.4i", creditcard.year.to_s.sub(/^0+/, ''))
- month = sprintf("%.2i", creditcard.month.to_s.sub(/^0+/, ''))
+ year = sprintf('%.4i', creditcard.year.to_s.sub(/^0+/, ''))
+ month = sprintf('%.2i', creditcard.month.to_s.sub(/^0+/, ''))
"#{year}#{month}"
end
def startdate(creditcard)
@@ -307,14 +307,14 @@
xml.tag! 'Tender' do
yield xml
end
end
if action != :add
- xml.tag! "ProfileID", options[:profile_id]
+ xml.tag! 'ProfileID', options[:profile_id]
end
if action == :inquiry
- xml.tag! "PaymentHistory", ( options[:history] ? 'Y' : 'N' )
+ xml.tag! 'PaymentHistory', ( options[:history] ? 'Y' : 'N' )
end
end
end
end
end
@@ -333,10 +333,10 @@
end
end
def format_rp_date(time)
case time
- when Time, Date then time.strftime("%m%d%Y")
+ when Time, Date then time.strftime('%m%d%Y')
else
time.to_s
end
end