Sha256: 8db1fa7b58afbb00be46387910a3688dc9d59a1ed5439734a671f7ebadc6fff4
Contents?: true
Size: 555 Bytes
Versions: 9
Compression:
Stored size: 555 Bytes
Contents
require 'razorpay/request' require 'razorpay/entity' module Razorpay # Order API allows you to associate # Payments with an order entity class Order < Entity def self.request Razorpay::Request.new('orders') end def self.create(options) request.create options end def self.fetch(id) request.fetch id end def self.all(options = {}) request.all options end def payments(options = {}) r = self.class.request r.request :get, "/orders/#{id}/payments", options end end end
Version data entries
9 entries across 9 versions & 1 rubygems