lib/active_merchant/billing/gateways/payu_in.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/payu_in.rb in activemerchant-1.116.0
- old
+ new
@@ -14,16 +14,16 @@
self.supported_cardtypes = %i[visa master american_express diners_club maestro]
self.homepage_url = 'https://www.payu.in/'
self.display_name = 'PayU India'
- def initialize(options={})
+ def initialize(options = {})
requires!(options, :key, :salt)
super
end
- def purchase(money, payment, options={})
+ def purchase(money, payment, options = {})
requires!(options, :order_id)
post = {}
add_invoice(post, money, options)
add_payment(post, payment)
@@ -39,10 +39,10 @@
r.process { handle_3dsecure(r) }
end
end
end
- def refund(money, authorization, options={})
+ def refund(money, authorization, options = {})
raise ArgumentError, 'Amount is required' unless money
post = {}
post[:command] = 'cancel_refund_transaction'