Skip to content

Instantly share code, notes, and snippets.

require 'watir-webdriver'
require 'spec_helper'
RSpec.describe "emberlight" do
let(:browser) {
# @browser ||= Watir::Browser.new :firefox
caps = Selenium::WebDriver::Remote::Capabilities.chrome
caps.version = "31"
@tk5446
tk5446 / CrowdTiltAPIPaymentError
Created June 17, 2014 22:39
This is the error we are receiving from Crowdtilt API when trying to make a production payment
2014-06-17T22:35:25.162968+00:00 heroku[router]: at=info method=POST path="/fishbone-s-swim-at-your-own-risk-campaign--2/ajax/create_payment_user" host=www.pitchtop.com request_id=331c9e0f-f784-458d-9788-78ab24ec0bac fwd="192.77.237.46" dyno=web.2 connect=16ms service=683ms status=200 bytes=473
2014-06-17T22:35:25.066827+00:00 app[web.2]: method=POST path=/fishbone-s-swim-at-your-own-risk-campaign--2/ajax/create_payment_user format=*/* controller=campaigns action=ajax_create_payment_user status=200 duration=594.32 view=23.65 db=5.58 params={"email"=>"4tking@gmail.com", "id"=>"fishbone-s-swim-at-your-own-risk-campaign--2"}
2014-06-17T22:35:30.991432+00:00 app[web.1]: CROWDTILT API REQUEST: /campaigns/CMPEE03EC4EF5A211E3ABAAFB2FEDA5C20B/payments
2014-06-17T22:35:30.991531+00:00 app[web.1]: {:amount=>100, :user_fee_amount=>0, :admin_fee_amount=>33, :user_id=>"USRACA50BDEF66F11E388FF2CB74438A48E", :card_id=>"CCPB01059EAF66F11E3BA349AF1760C2EDA", :metadata=>{:fullname=>"THOMAS KING", :email=>"4tking@gmail.com", :
@tk5446
tk5446 / CrowdtiltAPIPaymentError
Created June 17, 2014 22:13
Error we are receiving
2014-06-16T22:13:49.993553+00:00 app[web.2]: **************************************************
2014-06-16T22:13:49.993585+00:00 app[web.2]: CROWDTILT API REQUEST: /campaigns/CMPEE03EC4EF5A211E3ABAAFB2FEDA5C20B/payments
2014-06-16T22:13:49.993699+00:00 app[web.2]: {:amount=>100, :user_fee_amount=>0, :admin_fee_amount=>33, :user_id=>"USR7BE3C6BAF5A311E3ACA70B28B1CA0611", :card_id=>"CCP7E316F58F5A311E396B072E25B9F6C93", :metadata=>{:fullname=>"THOMAS KING", :email=>"4tking@gmail.com", :billing_postal_code=>"94109", :quantity=>1, :reward=>0, :additional_info=>""}}
2014-06-16T22:13:50.110067+00:00 app[web.2]: API ERROR WITH POST TO /payments: 404 {"error"=>"This campaign does not exist", "request_id"=>"REQ158201402956830.076871947", "error_id"=>"ERR_ID_CAMPAIGN_NOT_FOUND"}
2014-06-16T22:13:49.990348+00:00 app[web.2]: **************************************************