lib/active_merchant/billing/gateways/first_pay.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/first_pay.rb in activemerchant-1.116.0

- old
+ new

@@ -11,47 +11,47 @@ self.supported_cardtypes = %i[visa master american_express discover] self.homepage_url = 'http://1stpaygateway.net/' self.display_name = '1stPayGateway.Net' - def initialize(options={}) + def initialize(options = {}) requires!(options, :transaction_center_id, :gateway_id) super end - def purchase(money, payment, options={}) + def purchase(money, payment, options = {}) post = {} add_invoice(post, money, options) add_payment(post, payment, options) add_address(post, payment, options) add_customer_data(post, options) commit('sale', post) end - def authorize(money, payment, options={}) + def authorize(money, payment, options = {}) post = {} add_invoice(post, money, options) add_payment(post, payment, options) add_address(post, payment, options) add_customer_data(post, options) commit('auth', post) end - def capture(money, authorization, options={}) + def capture(money, authorization, options = {}) post = {} add_reference(post, 'settle', money, authorization) commit('settle', post) end - def refund(money, authorization, options={}) + def refund(money, authorization, options = {}) post = {} add_reference(post, 'credit', money, authorization) commit('credit', post) end - def void(authorization, options={}) + def void(authorization, options = {}) post = {} add_reference(post, 'void', nil, authorization) commit('void', post) end