Sha256: a4f291e3d8ee6aea8e7e3f69ad7e899eabd0bfa3ed025ce72c97d876b01ee800
Contents?: true
Size: 706 Bytes
Versions: 1
Compression:
Stored size: 706 Bytes
Contents
require 'rest_client' module Versapay class Transactions def initialize(&block) yield self if block_given? end def create(args) Versapay::make_request(:post, "/api/transactions.json", args) end def list(page = nil) args = page.nil? ? {} : { :page => page } Versapay::make_request(:get, "/api/transactions.json", args) end def view(token) Versapay::make_request(:get, "/api/transactions/#{token}.json") end def approve(token) Versapay::make_request(:post, "/api/transactions/#{token}/approve.json") end def cancel(token) Versapay::make_request(:post, "/api/transactions/#{token}/cancel.json") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
versapay-0.1.5 | lib/versapay/transactions.rb |