Class: Paymongo::Payment

Inherits:
BaseService show all
Defined in:
lib/paymongo/services/payment.rb

Constant Summary collapse

URI =
'payments'

Class Method Summary collapse

Methods inherited from BaseService

request

Class Method Details

.retrieve(id) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/paymongo/services/payment.rb', line 5

def self.retrieve(id)
  self.request(
    method: :get,
    object: Paymongo::Entities::Payment,
    path: "#{self::URI}/#{id}",
    payload: {}
  )
end