Sha256: 7521cc799dadb9b78ddd90bfbd19dbd4cb9892000955dfdc8ea90bbc78f9d119

Contents?: true

Size: 368 Bytes

Versions: 5

Compression:

Stored size: 368 Bytes

Contents

module Stripe
  class Order < APIResource
    include Stripe::APIOperations::List
    include Stripe::APIOperations::Create
    include Stripe::APIOperations::Update

    def pay(params, opts={})
      response, opts = request(:post, pay_url, params, opts)
      refresh_from(response, opts)
    end

    private

    def pay_url
      url + "/pay"
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stripe-1.28.1 lib/stripe/order.rb
stripe-1.28.0 lib/stripe/order.rb
stripe-1.27.2 lib/stripe/order.rb
stripe-1.27.1 lib/stripe/order.rb
stripe-1.27.0 lib/stripe/order.rb