Class: JuspayCheckout::Order

Inherits:
ExpressCheckout show all
Defined in:
lib/juspay_checkout/order.rb

Class Method Summary collapse

Methods inherited from ExpressCheckout

credential_config, request

Class Method Details

.create(params = {}) ⇒ Object



13
14
15
# File 'lib/juspay_checkout/order.rb', line 13

def create(params = {})
	JuspayCheckout::ExpressCheckout.request("/orders", 'post', params)
end

.get_status(order_id) ⇒ Object



8
9
10
# File 'lib/juspay_checkout/order.rb', line 8

def get_status(order_id)
	JuspayCheckout::ExpressCheckout.request("/orders/#{order_id}", 'get')
end

.refund(order_id, params = {}) ⇒ Object



18
19
20
# File 'lib/juspay_checkout/order.rb', line 18

def refund(order_id, params = {})
	JuspayCheckout::ExpressCheckout.request("/orders/#{order_id}/refunds", 'post', params)
end