# File lib/active_merchant/billing/gateways/stripe.rb, line 56 def capture(money, identification, options = {}) commit("charges/#{CGI.escape(identification)}/capture", {}) end
# File lib/active_merchant/billing/gateways/stripe.rb, line 38 def purchase(money, creditcard, options = {}) post = {} add_amount(post, money, options) add_creditcard(post, creditcard, options) add_customer(post, options) add_customer_data(post, options) add_flags(post, options) raise ArgumentError.new("Customer or Credit Card required.") if !post[:card] && !post[:customer] commit('charges', post) end
# File lib/active_merchant/billing/gateways/stripe.rb, line 64 def refund(money, identification, options = {}) post = {} post[:amount] = amount(money) if money commit("charges/#{CGI.escape(identification)}/refund", post) end
# File lib/active_merchant/billing/gateways/stripe.rb, line 72 def store(creditcard, options={}) post = {} add_creditcard(post, creditcard, options) add_customer_data(post, options) if options[:customer] commit("customers/#{CGI.escape(options[:customer])}", post) else commit('customers', post) end end
Generated with the Darkfish Rdoc Generator 2.