class BogApi::V1::Payment
Public Class Methods
create(order_id, payment_data)
click to toggle source
# 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)
click to toggle source
# 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