# File lib/active_merchant/billing/gateways/first_pay.rb, line 63 def credit(money, reference, options = {}) deprecated CREDIT_DEPRECATION_MESSAGE refund(money, reference, options) end
# File lib/active_merchant/billing/gateways/first_pay.rb, line 40 def purchase(money, creditcard, options = {}) post = FirstPayPostData.new add_invoice(post, options) add_creditcard(post, creditcard) add_address(post, options) add_customer_data(post, options) commit('sale', money, post) end
# File lib/active_merchant/billing/gateways/first_pay.rb, line 50 def refund(money, reference, options = {}) requires!(options, :credit_card) post = FirstPayPostData.new add_invoice(post, options) add_creditcard(post, options[:credit_card]) add_address(post, options) add_customer_data(post, options) add_credit_data(post, reference) commit('credit', money, post) end
# File lib/active_merchant/billing/gateways/first_pay.rb, line 68 def void(money, creditcard, options = {}) post = FirstPayPostData.new add_creditcard(post, creditcard) add_void_data(post, options) add_invoice(post, options) add_customer_data(post, options) commit('void', money, post) end
Generated with the Darkfish Rdoc Generator 2.