Sha256: 81cebc216bd26057f902f74feb5116b6994f957a3999492118fde020229c5e2a
Contents?: true
Size: 354 Bytes
Versions: 1
Compression:
Stored size: 354 Bytes
Contents
module Moip2 class MultiPaymentApi attr_reader :client def initialize(client) @client = client end def base_path(multi_order_id) "/v2/multiorders/#{multi_order_id}/multipayments" end def create(multi_order_id, payment) Resource::Payment.new client.post(base_path(multi_order_id), payment) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
moip2-0.1.0 | lib/moip2/multi_payment_api.rb |