Sha256: 66c6a5b44b54d598c22fd654010c985b38440e270a42dcf56f9f7701d987da34
Contents?: true
Size: 594 Bytes
Versions: 10
Compression:
Stored size: 594 Bytes
Contents
module Stripe class Order < APIResource extend Stripe::APIOperations::List extend Stripe::APIOperations::Create include Stripe::APIOperations::Save def pay(params, opts={}) resp, opts = request(:post, pay_url, params, opts) initialize_from(resp.data, opts) end def return_order(params, opts={}) resp, opts = request(:post, returns_url, params, opts) Util.convert_to_stripe_object(resp.data, opts) end private def pay_url resource_url + '/pay' end def returns_url resource_url + '/returns' end end end
Version data entries
10 entries across 10 versions & 1 rubygems