Sha256: a9bb0d7ecc7193a58304b46fc5c4bc8bb5d989e5ea0516de464a3796a636b26e
Contents?: true
Size: 641 Bytes
Versions: 5
Compression:
Stored size: 641 Bytes
Contents
module PayuAPI class Client extend Dry::Initializer::Mixin option :pos_id option :auth_token option :sandbox, default: proc { false } def create_order(order_params) Order.create(client: self, params: order_params) end def get_order(order_id:) Order.get(client: self, order_id: order_id) end def capture(order_id:) Order.capture(client: self, order_id: order_id) end def cancel(order_id:) Order.cancel(client: self, order_id: order_id) end def refund(order_id:, params:) Order.refund(client: self, order_id: order_id, params: params) end end end
Version data entries
5 entries across 5 versions & 1 rubygems