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

- old
+ new

@@ -18,56 +18,56 @@ # options - A hash of options: # :global_user_name - Your Global user name # :global_password - Your Global password # :term_type - 3 character field assigned by Global Transport after # - your application is certified. - def initialize(options={}) + def initialize(options = {}) requires!(options, :global_user_name, :global_password, :term_type) super end - def purchase(money, payment_method, options={}) + def purchase(money, payment_method, options = {}) post = {} add_invoice(post, money, options) add_payment_method(post, payment_method) add_address(post, options) commit('Sale', post, options) end - def authorize(money, payment_method, options={}) + def authorize(money, payment_method, options = {}) post = {} add_invoice(post, money, options) add_payment_method(post, payment_method) add_address(post, options) commit('Auth', post, options) end - def capture(money, authorization, options={}) + def capture(money, authorization, options = {}) post = {} add_invoice(post, money, options) add_auth(post, authorization) commit('Force', post, options) end - def refund(money, authorization, options={}) + def refund(money, authorization, options = {}) post = {} add_invoice(post, money, options) add_auth(post, authorization) commit('Return', post, options) end - def void(authorization, options={}) + def void(authorization, options = {}) post = {} add_auth(post, authorization) commit('Void', post, options) end - def verify(payment_method, options={}) + def verify(payment_method, options = {}) post = {} add_payment_method(post, payment_method) add_address(post, options) commit('CardVerify', post, options)