Class: Paystackapi::PaystackTransactions

Inherits:
Object
  • Object
show all
Defined in:
lib/paystackapi.rb

Class Method Summary collapse

Class Method Details

.charge(body) ⇒ Object



27
28
29
# File 'lib/paystackapi.rb', line 27

def self.charge(body)
	Transaction.charge_authorization(body)
end

.listObject



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

.totalsObject



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