Sha256: a4cbfdbef6c2bc4c85919c192edd881d6283202791dbd34b9c94960ab51df70c
Contents?: true
Size: 708 Bytes
Versions: 1
Compression:
Stored size: 708 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 def get_paymethods Paymethods.get(client: self) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
payu_api-0.1.5 | lib/payu_api/client.rb |