Sha256: afad7bc862a7894ceb43d3ea628a00d8f43ae0828706ecb14d5dc5730190c833

Contents?: true

Size: 254 Bytes

Versions: 4

Compression:

Stored size: 254 Bytes

Contents

module Moip2
  class PaymentApi

    attr_reader :client

    def initialize(client)
      @client = client
    end

    def create(order_id, payment)
      Resource::Payment.new client.post("/v2/orders/#{order_id}/payments", payment)
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
moip2-0.1.4 lib/moip2/payment_api.rb
moip2-0.1.3 lib/moip2/payment_api.rb
moip2-0.1.1 lib/moip2/payment_api.rb
moip2-0.1.0 lib/moip2/payment_api.rb