stripe_tester 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +122 -0
- data/Rakefile +7 -0
- data/lib/stripe_tester.rb +97 -0
- data/lib/stripe_tester/version.rb +3 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/stripe_tester_spec.rb +101 -0
- data/stripe_tester.gemspec +25 -0
- data/stripe_webhooks/.DS_Store +0 -0
- data/stripe_webhooks/2013-02-13/charge_failed.yml +44 -0
- data/stripe_webhooks/2013-02-13/charge_refunded.yml +44 -0
- data/stripe_webhooks/2013-02-13/charge_succeeded.yml +43 -0
- data/stripe_webhooks/2013-02-13/customer_created.yml +19 -0
- data/stripe_webhooks/2013-02-13/customer_deleted.yml +19 -0
- data/stripe_webhooks/2013-02-13/customer_subscription_created.yml +30 -0
- data/stripe_webhooks/2013-02-13/customer_subscription_deleted.yml +30 -0
- data/stripe_webhooks/2013-02-13/customer_subscription_trial_will_end.yaml +30 -0
- data/stripe_webhooks/2013-02-13/customer_subscription_updated.yml +41 -0
- data/stripe_webhooks/2013-02-13/invoice_created.yml +55 -0
- data/stripe_webhooks/2013-02-13/invoice_payment_failed.yml +55 -0
- data/stripe_webhooks/2013-02-13/invoice_payment_succeeded.yml +55 -0
- data/stripe_webhooks/2013-02-13/invoice_updated.yml +57 -0
- data/stripe_webhooks/2013-07-05/charge_failed.yaml +45 -0
- data/stripe_webhooks/2013-07-05/charge_refunded.yaml +45 -0
- data/stripe_webhooks/2013-07-05/charge_succeeded.yaml +45 -0
- data/stripe_webhooks/2013-07-05/customer_created.yaml +24 -0
- data/stripe_webhooks/2013-07-05/customer_deleted.yaml +24 -0
- data/stripe_webhooks/2013-07-05/customer_subscription_created.yaml +30 -0
- data/stripe_webhooks/2013-07-05/customer_subscription_deleted.yaml +30 -0
- data/stripe_webhooks/2013-07-05/customer_subscription_trial_will_end.yaml +30 -0
- data/stripe_webhooks/2013-07-05/customer_subscription_updated.yaml +41 -0
- data/stripe_webhooks/2013-07-05/invoice_created.yaml +55 -0
- data/stripe_webhooks/2013-07-05/invoice_payment_failed.yaml +55 -0
- data/stripe_webhooks/2013-07-05/invoice_payment_succeeded.yaml +55 -0
- data/stripe_webhooks/2013-07-05/invoice_updated.yaml +57 -0
- metadata +136 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
data:
|
4
|
+
object:
|
5
|
+
amount: 100
|
6
|
+
amount_refunded: 0
|
7
|
+
captured: true
|
8
|
+
card:
|
9
|
+
address_city:
|
10
|
+
address_country:
|
11
|
+
address_line1:
|
12
|
+
address_line1_check:
|
13
|
+
address_line2:
|
14
|
+
address_state:
|
15
|
+
address_zip:
|
16
|
+
address_zip_check:
|
17
|
+
country: US
|
18
|
+
cvc_check:
|
19
|
+
exp_month: 8
|
20
|
+
exp_year: 2014
|
21
|
+
fingerprint: TTKQdP1Omgi1czlY
|
22
|
+
last4: '4242'
|
23
|
+
name:
|
24
|
+
object: card
|
25
|
+
type: Visa
|
26
|
+
created: 1372666787
|
27
|
+
currency: usd
|
28
|
+
customer:
|
29
|
+
description: My First Test Charge (created for API docs)
|
30
|
+
dispute:
|
31
|
+
failure_code:
|
32
|
+
failure_message:
|
33
|
+
fee: 0
|
34
|
+
fee_details: []
|
35
|
+
id: ch_00000000000000
|
36
|
+
invoice:
|
37
|
+
livemode: false
|
38
|
+
object: charge
|
39
|
+
paid: true
|
40
|
+
refunded: true
|
41
|
+
id: evt_00000000000000
|
42
|
+
livemode: false
|
43
|
+
object: event
|
44
|
+
type: charge.refunded
|
@@ -0,0 +1,43 @@
|
|
1
|
+
created: 1326853478
|
2
|
+
data:
|
3
|
+
object:
|
4
|
+
amount: 100
|
5
|
+
amount_refunded: 0
|
6
|
+
captured: true
|
7
|
+
card:
|
8
|
+
address_city:
|
9
|
+
address_country:
|
10
|
+
address_line1:
|
11
|
+
address_line1_check:
|
12
|
+
address_line2:
|
13
|
+
address_state:
|
14
|
+
address_zip:
|
15
|
+
address_zip_check:
|
16
|
+
country: US
|
17
|
+
cvc_check:
|
18
|
+
exp_month: 8
|
19
|
+
exp_year: 2014
|
20
|
+
fingerprint: TTKQdP1Omgi1czlY
|
21
|
+
last4: '4242'
|
22
|
+
name:
|
23
|
+
object: card
|
24
|
+
type: Visa
|
25
|
+
created: 1372666270
|
26
|
+
currency: usd
|
27
|
+
customer:
|
28
|
+
description: My First Test Charge (created for API docs)
|
29
|
+
dispute:
|
30
|
+
failure_code:
|
31
|
+
failure_message:
|
32
|
+
fee: 0
|
33
|
+
fee_details: []
|
34
|
+
id: ch_00000000000000
|
35
|
+
invoice:
|
36
|
+
livemode: false
|
37
|
+
object: charge
|
38
|
+
paid: true
|
39
|
+
refunded: false
|
40
|
+
id: evt_00000000000000
|
41
|
+
livemode: false
|
42
|
+
object: event
|
43
|
+
type: charge.succeeded
|
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
data:
|
4
|
+
object:
|
5
|
+
account_balance: 0
|
6
|
+
active_card:
|
7
|
+
created: 1372666743
|
8
|
+
delinquent: false
|
9
|
+
description:
|
10
|
+
discount:
|
11
|
+
email:
|
12
|
+
id: cus_00000000000000
|
13
|
+
livemode: false
|
14
|
+
object: customer
|
15
|
+
subscription:
|
16
|
+
id: evt_00000000000000
|
17
|
+
livemode: false
|
18
|
+
object: event
|
19
|
+
type: customer.created
|
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
data:
|
4
|
+
object:
|
5
|
+
account_balance: 0
|
6
|
+
active_card:
|
7
|
+
created: 1372666825
|
8
|
+
delinquent: false
|
9
|
+
description:
|
10
|
+
discount:
|
11
|
+
email:
|
12
|
+
id: cus_00000000000000
|
13
|
+
livemode: false
|
14
|
+
object: customer
|
15
|
+
subscription:
|
16
|
+
id: evt_00000000000000
|
17
|
+
livemode: false
|
18
|
+
object: event
|
19
|
+
type: customer.deleted
|
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
data:
|
4
|
+
object:
|
5
|
+
cancel_at_period_end: false
|
6
|
+
canceled_at:
|
7
|
+
current_period_end: 1375345655
|
8
|
+
current_period_start: 1372667255
|
9
|
+
customer: cus_00000000000000
|
10
|
+
ended_at:
|
11
|
+
object: subscription
|
12
|
+
plan:
|
13
|
+
amount: 100
|
14
|
+
currency: usd
|
15
|
+
id: JAVA-PLAN-a7761760-534c-41b2-85c0-2006ac8f6d0c_00000000000000
|
16
|
+
interval: month
|
17
|
+
interval_count: 1
|
18
|
+
livemode: false
|
19
|
+
name: Java Bindings Plan
|
20
|
+
object: plan
|
21
|
+
trial_period_days:
|
22
|
+
quantity: 1
|
23
|
+
start: 1372667255
|
24
|
+
status: active
|
25
|
+
trial_end:
|
26
|
+
trial_start:
|
27
|
+
id: evt_00000000000000
|
28
|
+
livemode: false
|
29
|
+
object: event
|
30
|
+
type: customer.subscription.created
|
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
data:
|
4
|
+
object:
|
5
|
+
cancel_at_period_end: false
|
6
|
+
canceled_at:
|
7
|
+
current_period_end: 1375345727
|
8
|
+
current_period_start: 1372667327
|
9
|
+
customer: cus_00000000000000
|
10
|
+
ended_at: 1372462916
|
11
|
+
object: subscription
|
12
|
+
plan:
|
13
|
+
amount: 100
|
14
|
+
currency: usd
|
15
|
+
id: JAVA-PLAN-a7761760-534c-41b2-85c0-2006ac8f6d0c_00000000000000
|
16
|
+
interval: month
|
17
|
+
interval_count: 1
|
18
|
+
livemode: false
|
19
|
+
name: Java Bindings Plan
|
20
|
+
object: plan
|
21
|
+
trial_period_days:
|
22
|
+
quantity: 1
|
23
|
+
start: 1372667327
|
24
|
+
status: canceled
|
25
|
+
trial_end:
|
26
|
+
trial_start:
|
27
|
+
id: evt_00000000000000
|
28
|
+
livemode: false
|
29
|
+
object: event
|
30
|
+
type: customer.subscription.deleted
|
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
data:
|
4
|
+
object:
|
5
|
+
cancel_at_period_end: false
|
6
|
+
canceled_at:
|
7
|
+
current_period_end: 1377265641
|
8
|
+
current_period_start: 1374587241
|
9
|
+
customer: cus_00000000000000
|
10
|
+
ended_at:
|
11
|
+
object: subscription
|
12
|
+
plan:
|
13
|
+
amount: 100
|
14
|
+
currency: usd
|
15
|
+
id: JAVA-PLAN-a7761760-534c-41b2-85c0-2006ac8f6d0c_00000000000000
|
16
|
+
interval: month
|
17
|
+
interval_count: 1
|
18
|
+
livemode: false
|
19
|
+
name: Java Bindings Plan
|
20
|
+
object: plan
|
21
|
+
trial_period_days:
|
22
|
+
quantity: 1
|
23
|
+
start: 1374587241
|
24
|
+
status: trialing
|
25
|
+
trial_end: 1374803771
|
26
|
+
trial_start: 1374544571
|
27
|
+
id: evt_00000000000000
|
28
|
+
livemode: false
|
29
|
+
object: event
|
30
|
+
type: customer.subscription.trial_will_end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
data:
|
4
|
+
object:
|
5
|
+
cancel_at_period_end: false
|
6
|
+
canceled_at:
|
7
|
+
current_period_end: 1375345695
|
8
|
+
current_period_start: 1372667295
|
9
|
+
customer: cus_00000000000000
|
10
|
+
ended_at:
|
11
|
+
object: subscription
|
12
|
+
plan:
|
13
|
+
amount: 100
|
14
|
+
currency: usd
|
15
|
+
id: JAVA-PLAN-a7761760-534c-41b2-85c0-2006ac8f6d0c_00000000000000
|
16
|
+
interval: month
|
17
|
+
interval_count: 1
|
18
|
+
livemode: false
|
19
|
+
name: Java Bindings Plan
|
20
|
+
object: plan
|
21
|
+
trial_period_days:
|
22
|
+
quantity: 1
|
23
|
+
start: 1372667295
|
24
|
+
status: active
|
25
|
+
trial_end:
|
26
|
+
trial_start:
|
27
|
+
previous_attributes:
|
28
|
+
plan:
|
29
|
+
amount: 2000
|
30
|
+
currency: usd
|
31
|
+
id: OLD_PLAN_ID
|
32
|
+
interval: month
|
33
|
+
interval_count: 1
|
34
|
+
livemode: false
|
35
|
+
name: Old plan
|
36
|
+
object: plan
|
37
|
+
trial_period_days:
|
38
|
+
id: evt_00000000000000
|
39
|
+
livemode: false
|
40
|
+
object: event
|
41
|
+
type: customer.subscription.updated
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
data:
|
4
|
+
object:
|
5
|
+
amount_due: 0
|
6
|
+
attempt_count: 0
|
7
|
+
attempted: false
|
8
|
+
charge:
|
9
|
+
closed: false
|
10
|
+
currency: usd
|
11
|
+
customer: cus_00000000000000
|
12
|
+
date: 1372666861
|
13
|
+
discount:
|
14
|
+
ending_balance:
|
15
|
+
id: in_00000000000000
|
16
|
+
lines:
|
17
|
+
count: 1
|
18
|
+
data:
|
19
|
+
- amount: 100
|
20
|
+
currency: usd
|
21
|
+
description:
|
22
|
+
id: su_27H6QevcfQVghi
|
23
|
+
livemode: true
|
24
|
+
object: line_item
|
25
|
+
period:
|
26
|
+
end: 1378023661
|
27
|
+
start: 1375345261
|
28
|
+
plan:
|
29
|
+
amount: 2000
|
30
|
+
currency: usd
|
31
|
+
id: gold
|
32
|
+
interval: month
|
33
|
+
interval_count: 1
|
34
|
+
livemode: false
|
35
|
+
name: Gold Special
|
36
|
+
object: plan
|
37
|
+
trial_period_days:
|
38
|
+
proration: false
|
39
|
+
quantity: 1
|
40
|
+
type: subscription
|
41
|
+
object: list
|
42
|
+
url: /v1/invoices/in_27H6EmDDBU0Xza/lines
|
43
|
+
livemode: false
|
44
|
+
next_payment_attempt: 1372670461
|
45
|
+
object: invoice
|
46
|
+
paid: true
|
47
|
+
period_end: 1372666861
|
48
|
+
period_start: 1372666861
|
49
|
+
starting_balance: 0
|
50
|
+
subtotal: 0
|
51
|
+
total: 0
|
52
|
+
id: evt_00000000000000
|
53
|
+
livemode: false
|
54
|
+
object: event
|
55
|
+
type: invoice.created
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
data:
|
4
|
+
object:
|
5
|
+
amount_due: 0
|
6
|
+
attempt_count: 0
|
7
|
+
attempted: true
|
8
|
+
charge:
|
9
|
+
closed: false
|
10
|
+
currency: usd
|
11
|
+
customer: cus_00000000000000
|
12
|
+
date: 1372666932
|
13
|
+
discount:
|
14
|
+
ending_balance:
|
15
|
+
id: in_00000000000000
|
16
|
+
lines:
|
17
|
+
count: 1
|
18
|
+
data:
|
19
|
+
- amount: 100
|
20
|
+
currency: usd
|
21
|
+
description:
|
22
|
+
id: su_27H7aFRF9sGc2F
|
23
|
+
livemode: true
|
24
|
+
object: line_item
|
25
|
+
period:
|
26
|
+
end: 1378023732
|
27
|
+
start: 1375345332
|
28
|
+
plan:
|
29
|
+
amount: 2000
|
30
|
+
currency: usd
|
31
|
+
id: gold
|
32
|
+
interval: month
|
33
|
+
interval_count: 1
|
34
|
+
livemode: false
|
35
|
+
name: Gold Special
|
36
|
+
object: plan
|
37
|
+
trial_period_days:
|
38
|
+
proration: false
|
39
|
+
quantity: 1
|
40
|
+
type: subscription
|
41
|
+
object: list
|
42
|
+
url: /v1/invoices/in_27H76fl7hVkV8A/lines
|
43
|
+
livemode: false
|
44
|
+
next_payment_attempt: 1372670532
|
45
|
+
object: invoice
|
46
|
+
paid: false
|
47
|
+
period_end: 1372666932
|
48
|
+
period_start: 1372666932
|
49
|
+
starting_balance: 0
|
50
|
+
subtotal: 0
|
51
|
+
total: 0
|
52
|
+
id: evt_00000000000000
|
53
|
+
livemode: false
|
54
|
+
object: event
|
55
|
+
type: invoice.payment_failed
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
data:
|
4
|
+
object:
|
5
|
+
amount_due: 0
|
6
|
+
attempt_count: 0
|
7
|
+
attempted: true
|
8
|
+
charge: '_00000000000000'
|
9
|
+
closed: true
|
10
|
+
currency: usd
|
11
|
+
customer: cus_00000000000000
|
12
|
+
date: 1372666901
|
13
|
+
discount:
|
14
|
+
ending_balance:
|
15
|
+
id: in_00000000000000
|
16
|
+
lines:
|
17
|
+
count: 1
|
18
|
+
data:
|
19
|
+
- amount: 100
|
20
|
+
currency: usd
|
21
|
+
description:
|
22
|
+
id: su_27H71PKIvQw51x
|
23
|
+
livemode: true
|
24
|
+
object: line_item
|
25
|
+
period:
|
26
|
+
end: 1378023701
|
27
|
+
start: 1375345301
|
28
|
+
plan:
|
29
|
+
amount: 2000
|
30
|
+
currency: usd
|
31
|
+
id: gold
|
32
|
+
interval: month
|
33
|
+
interval_count: 1
|
34
|
+
livemode: false
|
35
|
+
name: Gold Special
|
36
|
+
object: plan
|
37
|
+
trial_period_days:
|
38
|
+
proration: false
|
39
|
+
quantity: 1
|
40
|
+
type: subscription
|
41
|
+
object: list
|
42
|
+
url: /v1/invoices/in_27H7BIRslPCczp/lines
|
43
|
+
livemode: false
|
44
|
+
next_payment_attempt: 1372670501
|
45
|
+
object: invoice
|
46
|
+
paid: true
|
47
|
+
period_end: 1372666901
|
48
|
+
period_start: 1372666901
|
49
|
+
starting_balance: 0
|
50
|
+
subtotal: 0
|
51
|
+
total: 0
|
52
|
+
id: evt_00000000000000
|
53
|
+
livemode: false
|
54
|
+
object: event
|
55
|
+
type: invoice.payment_succeeded
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
created: 1326853478
|
3
|
+
data:
|
4
|
+
object:
|
5
|
+
amount_due: 0
|
6
|
+
attempt_count: 0
|
7
|
+
attempted: false
|
8
|
+
charge:
|
9
|
+
closed: false
|
10
|
+
currency: usd
|
11
|
+
customer: cus_00000000000000
|
12
|
+
date: 1372666972
|
13
|
+
discount:
|
14
|
+
ending_balance:
|
15
|
+
id: in_00000000000000
|
16
|
+
lines:
|
17
|
+
count: 1
|
18
|
+
data:
|
19
|
+
- amount: 100
|
20
|
+
currency: usd
|
21
|
+
description:
|
22
|
+
id: su_27H8SFCRk5E65k
|
23
|
+
livemode: true
|
24
|
+
object: line_item
|
25
|
+
period:
|
26
|
+
end: 1378023772
|
27
|
+
start: 1375345372
|
28
|
+
plan:
|
29
|
+
amount: 2000
|
30
|
+
currency: usd
|
31
|
+
id: gold
|
32
|
+
interval: month
|
33
|
+
interval_count: 1
|
34
|
+
livemode: false
|
35
|
+
name: Gold Special
|
36
|
+
object: plan
|
37
|
+
trial_period_days:
|
38
|
+
proration: false
|
39
|
+
quantity: 1
|
40
|
+
type: subscription
|
41
|
+
object: list
|
42
|
+
url: /v1/invoices/in_27H8gb3oXVQC8G/lines
|
43
|
+
livemode: false
|
44
|
+
next_payment_attempt: 1372670572
|
45
|
+
object: invoice
|
46
|
+
paid: false
|
47
|
+
period_end: 1372666972
|
48
|
+
period_start: 1372666972
|
49
|
+
starting_balance: 0
|
50
|
+
subtotal: 0
|
51
|
+
total: 0
|
52
|
+
previous_attributes:
|
53
|
+
lines: []
|
54
|
+
id: evt_00000000000000
|
55
|
+
livemode: false
|
56
|
+
object: event
|
57
|
+
type: invoice.updated
|