Class: Recharge::Transaction
- Inherits:
-
Object
- Object
- Recharge::Transaction
- Includes:
- HappyMapper
- Defined in:
- lib/recharge/transaction.rb
Class Method Summary collapse
- .purchase(attributes = {}, apiKey = nil) ⇒ Object
- .refund(attributes = {}, apiKey = nil) ⇒ Object
- .void(attributes = {}, apiKey = nil) ⇒ Object
Class Method Details
.purchase(attributes = {}, apiKey = nil) ⇒ Object
18 19 20 21 |
# File 'lib/recharge/transaction.rb', line 18 def self.purchase (attributes = {}, apiKey=nil) responseXML = Recharge::Base.post('purchase', attributes, apiKey) parse(responseXML.to_s) end |