Class: Payrex::Services::PaymentMethodsService

Inherits:
BaseService
  • Object
show all
Defined in:
lib/services/payment_methods_service.rb

Constant Summary collapse

PATH =
"payment_methods"

Instance Method Summary collapse

Methods inherited from BaseService

#initialize, #request

Constructor Details

This class inherits a constructor from Payrex::Services::BaseService

Instance Method Details

#create(payload) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/services/payment_methods_service.rb', line 6

def create(payload)
  request(
    method: :post,
    object: Payrex::Entities::PaymentMethod,
    path: PATH,
    payload: payload
  )
end