Class: BogApi::V1::Payment

Inherits:
Object
  • Object
show all
Defined in:
lib/bog_api/v1/payment.rb

Class Method Summary collapse

Class Method Details

.create(order_id, payment_data) ⇒ Object



9
10
11
# File 'lib/bog_api/v1/payment.rb', line 9

def self.create(order_id, payment_data)
  BogApi.post("/orders/#{id}/payment.json", body: payment_data.to_json, headers: {"Token" => BogApi.configuration.token }).parsed_response
end

.find(order_id) ⇒ Object



5
6
7
# File 'lib/bog_api/v1/payment.rb', line 5

def self.find(order_id)
  BogApi.get("/orders/#{id}/payment.json", headers: {"Token" => BogApi.configuration.token }).parsed_response
end