Sha256: b9d212c48a214f6f1178ffb58dc4292fbe9bf2dd4dcda5ec7e7300da5671a56f
Contents?: true
Size: 703 Bytes
Versions: 10
Compression:
Stored size: 703 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), 'lib')) $:.unshift(File.join(File.dirname(__FILE__), 'spec')) require 'multi_json' require 'slidepay' require 'spec_helper' include SlidePay SlidePay.configure(development: true) SlidePay.api_key = ENV["api_key"] RestClient.proxy = "http://127.0.0.1:8888" # Find any payments in this company that are under review payments_found = Payment.find_where(under_review: 1) if payments_found.count > 0 puts "Payments found: #{payments_found.length}" puts "=============================================" payments_found.each do |payment| puts "#{payment.id} - #{payment["amount"]}" end else puts "No payments found to be under review. Yay(?)" end
Version data entries
10 entries across 10 versions & 1 rubygems