payola-payments 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/services/payola/charge_card.rb +1 -1
- data/lib/payola.rb +1 -1
- data/lib/payola/version.rb +1 -1
- data/spec/dummy/log/test.log +571 -0
- data/spec/payola_spec.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGQyNWRjNTdhYmQyNGU4MjFkNzM4MzY0MzZjNWM4YjU2NzRhMWU2MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2Q0MmIyZmJiOGJhYThjOWUyYTlhM2Q4NTc4Mjg3MWQxMGFiMDQ2Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDE0NjlkYmJkMzkyYjI5MGQ2ZGI5ODg0ODU4ZWUxM2IwNzhkODQ4MjVlYTQy
|
10
|
+
MTU1NmM2NzcyMTAzZDllOThhNzE2MTIwZGJhYzkzY2UyZjNkMmFkZGIzMzNi
|
11
|
+
ZTU1MDIzOWFkNmE3M2Y0ODJhNDU0Y2E4YmJiMDQ4M2IwNzVhYWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDc2YzBjYmExZTYzM2Y2MGQyNDJlYzAwZWZmZTBlYmQ2Nzg2MmFkMWZmODFm
|
14
|
+
MzY4ZTdlNjU2ZGJkYmJkMDQ2OTcwNTk0YTBlMjYzNjE0ZDI2YWMzYTJlZWE3
|
15
|
+
MTM3M2ZhMDExY2UyMDNmMTk0YjRmZjhkMWRiMWI2MjMxOTMxZDA=
|
@@ -17,7 +17,7 @@ module Payola
|
|
17
17
|
currency: sale.currency,
|
18
18
|
customer: customer.id,
|
19
19
|
description: sale.guid,
|
20
|
-
}.merge(Payola.additional_charge_attributes.call(sale))
|
20
|
+
}.merge(Payola.additional_charge_attributes.call(sale, customer))
|
21
21
|
|
22
22
|
charge = Stripe::Charge.create(charge_attributes, secret_key)
|
23
23
|
|
data/lib/payola.rb
CHANGED
@@ -70,7 +70,7 @@ module Payola
|
|
70
70
|
self.support_email = 'sales@example.com'
|
71
71
|
self.default_currency = 'usd'
|
72
72
|
self.sellables = {}
|
73
|
-
self.additional_charge_attributes = lambda { |sale| { } }
|
73
|
+
self.additional_charge_attributes = lambda { |sale, customer| { } }
|
74
74
|
self.pdf_receipt = false
|
75
75
|
end
|
76
76
|
|
data/lib/payola/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -35329,3 +35329,574 @@ Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
|
|
35329
35329
|
[1m[35m (0.0ms)[0m rollback transaction
|
35330
35330
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35331
35331
|
[1m[35m (0.1ms)[0m rollback transaction
|
35332
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "owners" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
35333
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "payola_affiliates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "email" varchar(255), "percent" integer, "created_at" datetime, "updated_at" datetime)
|
35334
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "payola_coupons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255), "percent_off" integer, "created_at" datetime, "updated_at" datetime) [0m
|
35335
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "payola_sales" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "guid" varchar(255), "product_id" integer, "product_type" varchar(255), "created_at" datetime, "updated_at" datetime, "state" varchar(255), "stripe_id" varchar(255), "stripe_token" varchar(255), "card_last4" varchar(255), "card_expiration" date, "card_type" varchar(255), "error" text, "amount" integer, "fee_amount" integer, "coupon_id" integer, "opt_in" boolean, "download_count" integer, "affiliate_id" integer, "customer_address" text, "business_address" text, "stripe_customer_id" varchar(255), "currency" varchar(255), "signed_custom_fields" text, "owner_id" integer, "owner_type" varchar(255))
|
35336
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
35337
|
+
[1m[35m (1.0ms)[0m CREATE INDEX "index_payola_sales_on_coupon_id" ON "payola_sales" ("coupon_id")
|
35338
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
35339
|
+
FROM sqlite_master
|
35340
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
35341
|
+
UNION ALL
|
35342
|
+
SELECT sql
|
35343
|
+
FROM sqlite_temp_master
|
35344
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
35345
|
+
[0m
|
35346
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_payola_sales_on_email" ON "payola_sales" ("email")
|
35347
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
35348
|
+
FROM sqlite_master
|
35349
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
35350
|
+
UNION ALL
|
35351
|
+
SELECT sql
|
35352
|
+
FROM sqlite_temp_master
|
35353
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
35354
|
+
[0m
|
35355
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
35356
|
+
FROM sqlite_master
|
35357
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
35358
|
+
UNION ALL
|
35359
|
+
SELECT sql
|
35360
|
+
FROM sqlite_temp_master
|
35361
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
35362
|
+
|
35363
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_payola_sales_on_guid" ON "payola_sales" ("guid")[0m
|
35364
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
35365
|
+
FROM sqlite_master
|
35366
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
35367
|
+
UNION ALL
|
35368
|
+
SELECT sql
|
35369
|
+
FROM sqlite_temp_master
|
35370
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
35371
|
+
|
35372
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
35373
|
+
FROM sqlite_master
|
35374
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
35375
|
+
UNION ALL
|
35376
|
+
SELECT sql
|
35377
|
+
FROM sqlite_temp_master
|
35378
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
35379
|
+
[0m
|
35380
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
35381
|
+
FROM sqlite_master
|
35382
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
35383
|
+
UNION ALL
|
35384
|
+
SELECT sql
|
35385
|
+
FROM sqlite_temp_master
|
35386
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
35387
|
+
|
35388
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_payola_sales_on_owner_id_and_owner_type" ON "payola_sales" ("owner_id", "owner_type")[0m
|
35389
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
35390
|
+
FROM sqlite_master
|
35391
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
35392
|
+
UNION ALL
|
35393
|
+
SELECT sql
|
35394
|
+
FROM sqlite_temp_master
|
35395
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
35396
|
+
|
35397
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
35398
|
+
FROM sqlite_master
|
35399
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
35400
|
+
UNION ALL
|
35401
|
+
SELECT sql
|
35402
|
+
FROM sqlite_temp_master
|
35403
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
35404
|
+
[0m
|
35405
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
35406
|
+
FROM sqlite_master
|
35407
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
35408
|
+
UNION ALL
|
35409
|
+
SELECT sql
|
35410
|
+
FROM sqlite_temp_master
|
35411
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
35412
|
+
|
35413
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
35414
|
+
FROM sqlite_master
|
35415
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
35416
|
+
UNION ALL
|
35417
|
+
SELECT sql
|
35418
|
+
FROM sqlite_temp_master
|
35419
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
35420
|
+
[0m
|
35421
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_payola_sales_on_product" ON "payola_sales" ("product_id", "product_type")
|
35422
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
35423
|
+
FROM sqlite_master
|
35424
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
35425
|
+
UNION ALL
|
35426
|
+
SELECT sql
|
35427
|
+
FROM sqlite_temp_master
|
35428
|
+
WHERE name='index_payola_sales_on_product' AND type='index'
|
35429
|
+
[0m
|
35430
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
35431
|
+
FROM sqlite_master
|
35432
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
35433
|
+
UNION ALL
|
35434
|
+
SELECT sql
|
35435
|
+
FROM sqlite_temp_master
|
35436
|
+
WHERE name='index_payola_sales_on_owner_id_and_owner_type' AND type='index'
|
35437
|
+
|
35438
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
35439
|
+
FROM sqlite_master
|
35440
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
35441
|
+
UNION ALL
|
35442
|
+
SELECT sql
|
35443
|
+
FROM sqlite_temp_master
|
35444
|
+
WHERE name='index_payola_sales_on_guid' AND type='index'
|
35445
|
+
[0m
|
35446
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
35447
|
+
FROM sqlite_master
|
35448
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
35449
|
+
UNION ALL
|
35450
|
+
SELECT sql
|
35451
|
+
FROM sqlite_temp_master
|
35452
|
+
WHERE name='index_payola_sales_on_email' AND type='index'
|
35453
|
+
|
35454
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
35455
|
+
FROM sqlite_master
|
35456
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
35457
|
+
UNION ALL
|
35458
|
+
SELECT sql
|
35459
|
+
FROM sqlite_temp_master
|
35460
|
+
WHERE name='index_payola_sales_on_coupon_id' AND type='index'
|
35461
|
+
[0m
|
35462
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_payola_sales_on_stripe_customer_id" ON "payola_sales" ("stripe_customer_id")
|
35463
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "payola_stripe_webhooks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stripe_id" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
35464
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime)
|
35465
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
35466
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
35467
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
35468
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029140518')
|
35469
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001230848')[0m
|
35470
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141001170138')
|
35471
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141001203541')[0m
|
35472
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002013618')
|
35473
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141002013701')[0m
|
35474
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141002203725')
|
35475
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141017233304')[0m
|
35476
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141026101628')
|
35477
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20141026144800')[0m
|
35478
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20141029135848')
|
35479
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35480
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35481
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35482
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35483
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35484
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35485
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35486
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35487
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35488
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35489
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35490
|
+
[1m[35mPayola::StripeWebhook Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_stripe_webhooks" WHERE "payola_stripe_webhooks"."stripe_id" = 'test_id' LIMIT 1
|
35491
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "payola_stripe_webhooks" ("created_at", "stripe_id", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-11-07 18:57:48.755668"], ["stripe_id", "test_id"], ["updated_at", "2014-11-07 18:57:48.755668"]]
|
35492
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35493
|
+
[1m[36mPayola::StripeWebhook Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_stripe_webhooks" WHERE "payola_stripe_webhooks"."stripe_id" = 'test_id' LIMIT 1[0m
|
35494
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
35495
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35496
|
+
[1m[35mPayola::StripeWebhook Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_stripe_webhooks" WHERE "payola_stripe_webhooks"."stripe_id" = 'test_id' LIMIT 1
|
35497
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35498
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35499
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35500
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35501
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35502
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35503
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35504
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35505
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35506
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35507
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35508
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35509
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35510
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35511
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35512
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35513
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35514
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35515
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35516
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35517
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35518
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35519
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35520
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35521
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35522
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-1' LIMIT 1
|
35523
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:48.880534"], ["name", "Foo"], ["permalink", "foo-1"], ["price", 100], ["updated_at", "2014-11-07 18:57:48.880534"]]
|
35524
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35525
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35526
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35527
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35528
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '8kblu2' LIMIT 1
|
35529
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:48.893047"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "8kblu2"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 18:57:48.893047"]]
|
35530
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35531
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35532
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '8kblu2' AND "payola_sales"."id" != 1) LIMIT 1
|
35533
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35534
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35535
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '8kblu2' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
35536
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1 [["card_expiration", "2013-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 0], ["stripe_customer_id", "test_cus_1"], ["stripe_id", "test_ch_3"], ["updated_at", "2014-11-07 18:57:48.899671"]]
|
35537
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35538
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35539
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1[0m
|
35540
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35541
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
35542
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
35543
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35544
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35545
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-2' LIMIT 1[0m
|
35546
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 18:57:48.952237"], ["name", "Foo"], ["permalink", "foo-2"], ["price", 100], ["updated_at", "2014-11-07 18:57:48.952237"]]
|
35547
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35548
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35549
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35550
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35551
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '2gvmp6' LIMIT 1[0m
|
35552
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-07 18:57:48.955386"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "2gvmp6"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 18:57:48.955386"]]
|
35553
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35554
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35555
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '2gvmp6' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
35556
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35557
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35558
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '2gvmp6' AND "payola_sales"."id" != 1) LIMIT 1
|
35559
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["card_expiration", "2013-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 0], ["stripe_customer_id", "test_cus_1"], ["stripe_id", "test_ch_3"], ["updated_at", "2014-11-07 18:57:48.959487"]]
|
35560
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35561
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35562
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
35563
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35564
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
35565
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
35566
|
+
[1m[35mPayola::Sale Load (0.0ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
35567
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
35568
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
35569
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35570
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35571
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-3' LIMIT 1[0m
|
35572
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 18:57:48.966251"], ["name", "Foo"], ["permalink", "foo-3"], ["price", 100], ["updated_at", "2014-11-07 18:57:48.966251"]]
|
35573
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35574
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35575
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35576
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35577
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'kusauj' LIMIT 1[0m
|
35578
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-07 18:57:48.968895"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "kusauj"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 18:57:48.968895"]]
|
35579
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35580
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35581
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'kusauj' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
35582
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35583
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35584
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'kusauj' AND "payola_sales"."id" != 1) LIMIT 1
|
35585
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "payola_sales" SET "card_expiration" = ?, "card_last4" = ?, "card_type" = ?, "fee_amount" = ?, "stripe_customer_id" = ?, "stripe_id" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["card_expiration", "2013-12-01"], ["card_last4", "4242"], ["card_type", "Visa"], ["fee_amount", 0], ["stripe_customer_id", "test_cus_1"], ["stripe_id", "test_ch_3"], ["updated_at", "2014-11-07 18:57:48.972658"]]
|
35586
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35587
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35588
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
35589
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35590
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1 [["id", 1]]
|
35591
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
35592
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35593
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35594
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-4' LIMIT 1
|
35595
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:48.980870"], ["name", "Foo"], ["permalink", "foo-4"], ["price", 100], ["updated_at", "2014-11-07 18:57:48.980870"]]
|
35596
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35597
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35598
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35599
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35600
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'f2kj86' LIMIT 1
|
35601
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:48.983472"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "f2kj86"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 18:57:48.983472"]]
|
35602
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35603
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35604
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'f2kj86' AND "payola_sales"."id" != 1) LIMIT 1
|
35605
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35606
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35607
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'f2kj86' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
35608
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "error" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1 [["error", "The card was declined"], ["updated_at", "2014-11-07 18:57:48.986937"]]
|
35609
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35610
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35611
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1[0m
|
35612
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35613
|
+
[1m[36mPayola::Sale Load (0.1ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
35614
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
35615
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35616
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35617
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35618
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35619
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-5' LIMIT 1[0m
|
35620
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 18:57:48.993268"], ["name", "Foo"], ["permalink", "foo-5"], ["price", 100], ["updated_at", "2014-11-07 18:57:48.993268"]]
|
35621
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35622
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35623
|
+
[1m[36mPayola::Affiliate Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_affiliates" WHERE "payola_affiliates"."code" = 'MyString' LIMIT 1[0m
|
35624
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_affiliates" ("code", "created_at", "email", "percent", "updated_at") VALUES (?, ?, ?, ?, ?) [["code", "MyString"], ["created_at", "2014-11-07 18:57:49.002103"], ["email", "foo@example.com"], ["percent", 100], ["updated_at", "2014-11-07 18:57:49.002103"]]
|
35625
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35626
|
+
[1m[35mPayola::Affiliate Load (0.1ms)[0m SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE "payola_affiliates"."id" = ? LIMIT 1 [["id", 1]]
|
35627
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
35628
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35629
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35630
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-6' LIMIT 1
|
35631
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.011572"], ["name", "Foo"], ["permalink", "foo-6"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.011572"]]
|
35632
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35633
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
35634
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35635
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35636
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-7' LIMIT 1
|
35637
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.016340"], ["name", "Foo"], ["permalink", "foo-7"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.016340"]]
|
35638
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35639
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35640
|
+
[1m[35mPayola::Coupon Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1
|
35641
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "MyString"], ["created_at", "2014-11-07 18:57:49.024189"], ["percent_off", 1], ["updated_at", "2014-11-07 18:57:49.024189"]]
|
35642
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35643
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
35644
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35645
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35646
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-8' LIMIT 1
|
35647
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.029897"], ["name", "Foo"], ["permalink", "foo-8"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.029897"]]
|
35648
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35649
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35650
|
+
[1m[35mPayola::Coupon Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_coupons" WHERE "payola_coupons"."code" = 'MyString' LIMIT 1
|
35651
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "payola_coupons" ("code", "created_at", "percent_off", "updated_at") VALUES (?, ?, ?, ?)[0m [["code", "MyString"], ["created_at", "2014-11-07 18:57:49.031639"], ["percent_off", 1], ["updated_at", "2014-11-07 18:57:49.031639"]]
|
35652
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35653
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
35654
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35655
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35656
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35657
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35658
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35659
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35660
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35661
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35662
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35663
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35664
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-9' LIMIT 1
|
35665
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.042712"], ["name", "Foo"], ["permalink", "foo-9"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.042712"]]
|
35666
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35667
|
+
Processing by Payola::TransactionsController#create as HTML
|
35668
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-9"}
|
35669
|
+
[1m[36mProduct Load (0.1ms)[0m [1mSELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-9' LIMIT 1[0m
|
35670
|
+
[1m[35mPayola::Coupon Load (0.1ms)[0m SELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1
|
35671
|
+
[1m[36mPayola::Affiliate Load (0.1ms)[0m [1mSELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1[0m
|
35672
|
+
Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.3ms)
|
35673
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
35674
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35675
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35676
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-10' LIMIT 1[0m
|
35677
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 18:57:49.055391"], ["name", "Foo"], ["permalink", "foo-10"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.055391"]]
|
35678
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35679
|
+
Processing by Payola::TransactionsController#create as HTML
|
35680
|
+
Parameters: {"product_class"=>"product", "permalink"=>"foo-10"}
|
35681
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."permalink" = 'foo-10' LIMIT 1
|
35682
|
+
[1m[36mPayola::Coupon Load (0.1ms)[0m [1mSELECT "payola_coupons".* FROM "payola_coupons" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_coupons"."id" ASC LIMIT 1[0m
|
35683
|
+
[1m[35mPayola::Affiliate Load (0.1ms)[0m SELECT "payola_affiliates".* FROM "payola_affiliates" WHERE (lower(code) = lower(NULL)) ORDER BY "payola_affiliates"."id" ASC LIMIT 1
|
35684
|
+
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
35685
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
35686
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35687
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35688
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-11' LIMIT 1
|
35689
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.064590"], ["name", "Foo"], ["permalink", "foo-11"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.064590"]]
|
35690
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35691
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35692
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-12' LIMIT 1
|
35693
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.067977"], ["name", "Foo"], ["permalink", "foo-12"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.067977"]]
|
35694
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35695
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35696
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35697
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35698
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '7vq4pg' LIMIT 1
|
35699
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.071000"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "7vq4pg"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 18:57:49.071000"]]
|
35700
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35701
|
+
Processing by Payola::TransactionsController#status as HTML
|
35702
|
+
Parameters: {"guid"=>"7vq4pg"}
|
35703
|
+
[1m[36mPayola::Sale Load (0.2ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = '7vq4pg' ORDER BY "payola_sales"."id" ASC LIMIT 1[0m
|
35704
|
+
Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
35705
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
35706
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35707
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35708
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-13' LIMIT 1[0m
|
35709
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 18:57:49.079192"], ["name", "Foo"], ["permalink", "foo-13"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.079192"]]
|
35710
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35711
|
+
Processing by Payola::TransactionsController#status as HTML
|
35712
|
+
Parameters: {"guid"=>"doesnotexist"}
|
35713
|
+
[1m[35mPayola::Sale Load (0.1ms)[0m SELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'doesnotexist' ORDER BY "payola_sales"."id" ASC LIMIT 1
|
35714
|
+
Completed 404 Not Found in 7ms (Views: 6.2ms | ActiveRecord: 0.1ms)
|
35715
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
35716
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35717
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35718
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-14' LIMIT 1
|
35719
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.093266"], ["name", "Foo"], ["permalink", "foo-14"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.093266"]]
|
35720
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35721
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35722
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-15' LIMIT 1
|
35723
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.095822"], ["name", "Foo"], ["permalink", "foo-15"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.095822"]]
|
35724
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35725
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35726
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35727
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35728
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'dvr74o' LIMIT 1
|
35729
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.098928"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "dvr74o"], ["product_id", 2], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 18:57:49.098928"]]
|
35730
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35731
|
+
Processing by Payola::TransactionsController#show as HTML
|
35732
|
+
Parameters: {"guid"=>"dvr74o"}
|
35733
|
+
[1m[36mPayola::Sale Load (0.2ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."guid" = 'dvr74o' LIMIT 1[0m
|
35734
|
+
[1m[35mProduct Load (0.1ms)[0m SELECT "products".* FROM "products" WHERE "products"."id" = ? LIMIT 1 [["id", 2]]
|
35735
|
+
Redirected to http://test.host/
|
35736
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
35737
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
35738
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35739
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35740
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35741
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35742
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35743
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35744
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35745
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35746
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35747
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35748
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35749
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
35750
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35751
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35752
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-16' LIMIT 1
|
35753
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.113983"], ["name", "Foo"], ["permalink", "foo-16"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.113983"]]
|
35754
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35755
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35756
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
35757
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35758
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35759
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-17' LIMIT 1[0m
|
35760
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 18:57:49.121148"], ["name", "Foo"], ["permalink", "foo-17"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.121148"]]
|
35761
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35762
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35763
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
35764
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35765
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35766
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-18' LIMIT 1
|
35767
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.126975"], ["name", "Foo"], ["permalink", "foo-18"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.126975"]]
|
35768
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35769
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35770
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
35771
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35772
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35773
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35774
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35775
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35776
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-19' LIMIT 1
|
35777
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.135385"], ["name", "Foo"], ["permalink", "foo-19"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.135385"]]
|
35778
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35779
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35780
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35781
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35782
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '624mbv' LIMIT 1
|
35783
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.138017"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "624mbv"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 18:57:49.138017"]]
|
35784
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35785
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '624mbv' AND "payola_sales"."id" != 1) LIMIT 1[0m
|
35786
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35787
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-20' LIMIT 1[0m
|
35788
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 18:57:49.141153"], ["name", "Foo"], ["permalink", "foo-20"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.141153"]]
|
35789
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35790
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '624mbv' LIMIT 1
|
35791
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
35792
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35793
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35794
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-21' LIMIT 1
|
35795
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.146310"], ["name", "Foo"], ["permalink", "foo-21"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.146310"]]
|
35796
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35797
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35798
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35799
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35800
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = '8b7hmm' LIMIT 1
|
35801
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.193521"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "8b7hmm"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 18:57:49.193521"]]
|
35802
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35803
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35804
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = '8b7hmm' AND "payola_sales"."id" != 1) LIMIT 1
|
35805
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "signed_custom_fields" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["signed_custom_fields", "BAh7BkkiCmZpZWxkBjoGRUZJIgp2YWx1ZQY7AEY=--5d721d50404afc54672ec88747e606e4226813b1fdb826dff62844c014ca61fc"], ["updated_at", "2014-11-07 18:57:49.195565"]]
|
35806
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35807
|
+
[1m[36mPayola::Sale Load (0.0ms)[0m [1mSELECT "payola_sales".* FROM "payola_sales" WHERE "payola_sales"."id" = ? LIMIT 1[0m [["id", 1]]
|
35808
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
35809
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35810
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35811
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-22' LIMIT 1[0m
|
35812
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 18:57:49.199930"], ["name", "Foo"], ["permalink", "foo-22"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.199930"]]
|
35813
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35814
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35815
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35816
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35817
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'i2hdf' LIMIT 1[0m
|
35818
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-07 18:57:49.202555"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "i2hdf"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 18:57:49.202555"]]
|
35819
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35820
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35821
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'errored' WHERE "payola_sales"."id" = 1[0m
|
35822
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35823
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
35824
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35825
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35826
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-23' LIMIT 1
|
35827
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.208568"], ["name", "Foo"], ["permalink", "foo-23"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.208568"]]
|
35828
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35829
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35830
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35831
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35832
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'hndkqj' LIMIT 1
|
35833
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.211164"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "hndkqj"], ["product_id", 1], ["product_type", "Product"], ["state", "processing"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 18:57:49.211164"]]
|
35834
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35835
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35836
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'finished' WHERE "payola_sales"."id" = 1
|
35837
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35838
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
35839
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35840
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35841
|
+
[1m[36mProduct Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-24' LIMIT 1[0m
|
35842
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 18:57:49.218885"], ["name", "Foo"], ["permalink", "foo-24"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.218885"]]
|
35843
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35844
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35845
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35846
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35847
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'g0h3vg' LIMIT 1[0m
|
35848
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-07 18:57:49.221702"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "g0h3vg"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 18:57:49.221702"]]
|
35849
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35850
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35851
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "owners" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", "2014-11-07 18:57:49.225441"], ["updated_at", "2014-11-07 18:57:49.225441"]]
|
35852
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35853
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35854
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE ("payola_sales"."guid" = 'g0h3vg' AND "payola_sales"."id" != 1) LIMIT 1
|
35855
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "owner_id" = ?, "owner_type" = ?, "updated_at" = ? WHERE "payola_sales"."id" = 1[0m [["owner_id", 1], ["owner_type", "Owner"], ["updated_at", "2014-11-07 18:57:49.229413"]]
|
35856
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35857
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
35858
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35859
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35860
|
+
[1m[35mProduct Exists (0.2ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-25' LIMIT 1
|
35861
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.234889"], ["name", "Foo"], ["permalink", "foo-25"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.234889"]]
|
35862
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35863
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35864
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35865
|
+
[1m[36mPayola::Sale Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35866
|
+
[1m[35mPayola::Sale Exists (0.1ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'jrtp5r' LIMIT 1
|
35867
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", "2014-11-07 18:57:49.238868"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "jrtp5r"], ["product_id", 1], ["product_type", "Product"], ["state", "finished"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 18:57:49.238868"]]
|
35868
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35869
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35870
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "payola_sales" SET "state" = 'refunded' WHERE "payola_sales"."id" = 1
|
35871
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35872
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
35873
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35874
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35875
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-26' LIMIT 1[0m
|
35876
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "products" ("created_at", "name", "permalink", "price", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2014-11-07 18:57:49.245110"], ["name", "Foo"], ["permalink", "foo-26"], ["price", 100], ["updated_at", "2014-11-07 18:57:49.245110"]]
|
35877
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35878
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35879
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1[0m
|
35880
|
+
[1m[35mPayola::Sale Exists (0.0ms)[0m SELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" IS NULL LIMIT 1
|
35881
|
+
[1m[36mPayola::Sale Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "payola_sales" WHERE "payola_sales"."guid" = 'g233a5' LIMIT 1[0m
|
35882
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "payola_sales" ("created_at", "currency", "email", "guid", "product_id", "product_type", "state", "stripe_token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2014-11-07 18:57:49.247687"], ["currency", "usd"], ["email", "test@example.com"], ["guid", "g233a5"], ["product_id", 1], ["product_type", "Product"], ["state", "pending"], ["stripe_token", "tok_test"], ["updated_at", "2014-11-07 18:57:49.247687"]]
|
35883
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35884
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35885
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "payola_sales" SET "state" = 'processing' WHERE "payola_sales"."id" = 1[0m
|
35886
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35887
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
35888
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35889
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35890
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35891
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-27' LIMIT 1[0m
|
35892
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35893
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35894
|
+
[1m[35mProduct Exists (0.1ms)[0m SELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'foo-28' LIMIT 1
|
35895
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35896
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35897
|
+
[1m[36mProduct Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "products" WHERE "products"."permalink" = 'f' LIMIT 1[0m
|
35898
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35899
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35900
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35901
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35902
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
data/spec/payola_spec.rb
CHANGED
@@ -133,7 +133,8 @@ module Payola
|
|
133
133
|
describe '#additional_charge_attributes' do
|
134
134
|
it "should return a hash" do
|
135
135
|
sale = double
|
136
|
-
|
136
|
+
customer = double
|
137
|
+
expect(Payola.additional_charge_attributes.call(sale, customer)).to eq({})
|
137
138
|
end
|
138
139
|
end
|
139
140
|
end
|