Class: Paystackapi::PaystackTransactions
- Inherits:
-
Object
- Object
- Paystackapi::PaystackTransactions
- Defined in:
- lib/paystackapi.rb
Class Method Summary collapse
- .charge(body) ⇒ Object
- .list ⇒ Object
- .list_single(body) ⇒ Object
- .totals ⇒ Object
- .verify(body) ⇒ Object
Class Method Details
.charge(body) ⇒ Object
27 28 29 |
# File 'lib/paystackapi.rb', line 27 def self.charge(body) Transaction.(body) end |
.list ⇒ Object
18 19 20 |
# File 'lib/paystackapi.rb', line 18 def self.list Transaction.list_transactions end |
.list_single(body) ⇒ Object
24 25 26 |
# File 'lib/paystackapi.rb', line 24 def self.list_single(body) Transaction.fetch_transaction(body) end |
.totals ⇒ Object
21 22 23 |
# File 'lib/paystackapi.rb', line 21 def self.totals Transaction.list_transaction_totals end |
.verify(body) ⇒ Object
15 16 17 |
# File 'lib/paystackapi.rb', line 15 def self.verify(body) Transaction.verify_payment(body) end |