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

Version Path
slidepay-0.0.13 scenarios/payment_find_where_under_review.rb
slidepay-0.0.12 scenarios/payment_find_where_under_review.rb
slidepay-0.0.11 scenarios/payment_find_where_under_review.rb
slidepay-0.0.10 scenarios/payment_find_where_under_review.rb
slidepay-0.0.9 scenarios/payment_find_where_under_review.rb
slidepay-0.0.8 scenarios/payment_find_where_under_review.rb
slidepay-0.0.7 scenarios/payment_find_where_under_review.rb
slidepay-0.0.6 scenarios/payment_find_where_under_review.rb
slidepay-0.0.5 scenarios/payment_find_where_under_review.rb
slidepay-0.0.4 scenarios/payment_find_where_under_review.rb