# File lib/active_merchant/billing/gateways/plugnpay.rb, line 134 def capture(money, authorization, options = {}) post = PlugnpayPostData.new post[:orderID] = authorization add_amount(post, money, options) add_customer_data(post, options) commit(:capture, post) end
# File lib/active_merchant/billing/gateways/plugnpay.rb, line 154 def credit(money, identification_or_creditcard, options = {}) post = PlugnpayPostData.new add_amount(post, money, options) if identification_or_creditcard.is_a?(String) deprecated CREDIT_DEPRECATION_MESSAGE refund(money, identification_or_creditcard, options) else add_creditcard(post, identification_or_creditcard) add_addresses(post, options) add_customer_data(post, options) commit(:credit, post) end end
# File lib/active_merchant/billing/gateways/plugnpay.rb, line 108 def purchase(money, creditcard, options = {}) post = PlugnpayPostData.new add_amount(post, money, options) add_creditcard(post, creditcard) add_addresses(post, options) add_invoice_data(post, options) add_customer_data(post, options) post[:authtype] = 'authpostauth' commit(:authorization, post) end
Generated with the Darkfish Rdoc Generator 2.