Class: JuspayCheckout::Order
- Inherits:
-
ExpressCheckout
- Object
- ExpressCheckout
- JuspayCheckout::Order
- Defined in:
- lib/juspay_checkout/order.rb
Class Method Summary collapse
- .create(params = {}) ⇒ Object
-
.get_status(order_id) ⇒ Object
DOC - www.juspay.in/docs/api/ec/?shell#get-order-status curl api.juspay.in/orders/145678234 \ -u your_api_key:.
- .refund(order_id, params = {}) ⇒ Object
Methods inherited from ExpressCheckout
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
DOC - www.juspay.in/docs/api/ec/?shell#get-order-status curl api.juspay.in/orders/145678234 \ -u your_api_key:
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 |