fake_stripe 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CONTRIBUTING.md +33 -0
- data/LICENSE +19 -0
- data/README.md +66 -0
- data/Rakefile +8 -0
- data/lib/fake_stripe.rb +49 -0
- data/lib/fake_stripe/assets/v1.js +38 -0
- data/lib/fake_stripe/assets/v2-mock.js +18 -0
- data/lib/fake_stripe/assets/v2.js +757 -0
- data/lib/fake_stripe/configuration.rb +15 -0
- data/lib/fake_stripe/fixtures/cancel_subscription.json +18 -0
- data/lib/fake_stripe/fixtures/cancel_transfer.json +161 -0
- data/lib/fake_stripe/fixtures/capture_charge.json +51 -0
- data/lib/fake_stripe/fixtures/close_dispute.json +13 -0
- data/lib/fake_stripe/fixtures/create_card.json +21 -0
- data/lib/fake_stripe/fixtures/create_charge.json +45 -0
- data/lib/fake_stripe/fixtures/create_coupon.json +17 -0
- data/lib/fake_stripe/fixtures/create_customer.json +51 -0
- data/lib/fake_stripe/fixtures/create_invoice.json +52 -0
- data/lib/fake_stripe/fixtures/create_invoiceitem.json +15 -0
- data/lib/fake_stripe/fixtures/create_plan.json +14 -0
- data/lib/fake_stripe/fixtures/create_recipient.json +25 -0
- data/lib/fake_stripe/fixtures/create_subscription.json +18 -0
- data/lib/fake_stripe/fixtures/create_token.json +26 -0
- data/lib/fake_stripe/fixtures/create_transfer.json +161 -0
- data/lib/fake_stripe/fixtures/delete_card.json +4 -0
- data/lib/fake_stripe/fixtures/delete_coupon.json +4 -0
- data/lib/fake_stripe/fixtures/delete_customer.json +4 -0
- data/lib/fake_stripe/fixtures/delete_customer_discount.json +4 -0
- data/lib/fake_stripe/fixtures/delete_invoiceitem.json +4 -0
- data/lib/fake_stripe/fixtures/delete_plan.json +4 -0
- data/lib/fake_stripe/fixtures/delete_recipient.json +4 -0
- data/lib/fake_stripe/fixtures/delete_subscription_discount.json +4 -0
- data/lib/fake_stripe/fixtures/list_application_fees.json +55 -0
- data/lib/fake_stripe/fixtures/list_balance_history.json +76 -0
- data/lib/fake_stripe/fixtures/list_cards.json +70 -0
- data/lib/fake_stripe/fixtures/list_charges.json +146 -0
- data/lib/fake_stripe/fixtures/list_coupons.json +58 -0
- data/lib/fake_stripe/fixtures/list_customers.json +157 -0
- data/lib/fake_stripe/fixtures/list_events.json +172 -0
- data/lib/fake_stripe/fixtures/list_invoiceitems.json +52 -0
- data/lib/fake_stripe/fixtures/list_invoices.json +199 -0
- data/lib/fake_stripe/fixtures/list_plans.json +49 -0
- data/lib/fake_stripe/fixtures/list_recipients.json +82 -0
- data/lib/fake_stripe/fixtures/list_subscriptions.json +100 -0
- data/lib/fake_stripe/fixtures/list_transfers.json +488 -0
- data/lib/fake_stripe/fixtures/pay_invoice.json +65 -0
- data/lib/fake_stripe/fixtures/refund_application_fee.json +17 -0
- data/lib/fake_stripe/fixtures/refund_charge.json +51 -0
- data/lib/fake_stripe/fixtures/retrieve_account.json +19 -0
- data/lib/fake_stripe/fixtures/retrieve_application_fee.json +17 -0
- data/lib/fake_stripe/fixtures/retrieve_balance.json +16 -0
- data/lib/fake_stripe/fixtures/retrieve_balance_transaction.json +23 -0
- data/lib/fake_stripe/fixtures/retrieve_card.json +21 -0
- data/lib/fake_stripe/fixtures/retrieve_charge.json +45 -0
- data/lib/fake_stripe/fixtures/retrieve_coupon.json +17 -0
- data/lib/fake_stripe/fixtures/retrieve_customer.json +51 -0
- data/lib/fake_stripe/fixtures/retrieve_event.json +56 -0
- data/lib/fake_stripe/fixtures/retrieve_invoice.json +64 -0
- data/lib/fake_stripe/fixtures/retrieve_invoice_line_items.json +61 -0
- data/lib/fake_stripe/fixtures/retrieve_invoiceitem.json +15 -0
- data/lib/fake_stripe/fixtures/retrieve_plan.json +14 -0
- data/lib/fake_stripe/fixtures/retrieve_recipient.json +25 -0
- data/lib/fake_stripe/fixtures/retrieve_subscription.json +31 -0
- data/lib/fake_stripe/fixtures/retrieve_token.json +26 -0
- data/lib/fake_stripe/fixtures/retrieve_transfer.json +161 -0
- data/lib/fake_stripe/fixtures/retrieve_upcoming_invoice.json +63 -0
- data/lib/fake_stripe/fixtures/update_card.json +21 -0
- data/lib/fake_stripe/fixtures/update_charge.json +45 -0
- data/lib/fake_stripe/fixtures/update_customer.json +51 -0
- data/lib/fake_stripe/fixtures/update_dispute.json +13 -0
- data/lib/fake_stripe/fixtures/update_invoice.json +64 -0
- data/lib/fake_stripe/fixtures/update_invoiceitem.json +15 -0
- data/lib/fake_stripe/fixtures/update_plan.json +14 -0
- data/lib/fake_stripe/fixtures/update_recipient.json +25 -0
- data/lib/fake_stripe/fixtures/update_subscription.json +18 -0
- data/lib/fake_stripe/fixtures/update_transfer.json +161 -0
- data/lib/fake_stripe/initializers/webmock.rb +3 -0
- data/lib/fake_stripe/stub_app.rb +307 -0
- data/lib/fake_stripe/stub_stripe_js.rb +29 -0
- data/lib/fake_stripe/version.rb +3 -0
- metadata +211 -0
@@ -0,0 +1,70 @@
|
|
1
|
+
{
|
2
|
+
"object": "list",
|
3
|
+
"url": "/v1/customers/cu_103ewU2eZvKYlo2CUREXSezP/cards",
|
4
|
+
"count": 3,
|
5
|
+
"data": [
|
6
|
+
{
|
7
|
+
"id": "card_103ewd2eZvKYlo2CzCsKfISF",
|
8
|
+
"object": "card",
|
9
|
+
"last4": "0002",
|
10
|
+
"brand": "Visa",
|
11
|
+
"exp_month": 5,
|
12
|
+
"exp_year": 2015,
|
13
|
+
"fingerprint": "Ffz7dpISyG2aKd75",
|
14
|
+
"customer": null,
|
15
|
+
"country": "US",
|
16
|
+
"name": null,
|
17
|
+
"address_line1": null,
|
18
|
+
"address_line2": null,
|
19
|
+
"address_city": null,
|
20
|
+
"address_state": null,
|
21
|
+
"address_zip": null,
|
22
|
+
"address_country": null,
|
23
|
+
"cvc_check": null,
|
24
|
+
"address_line1_check": null,
|
25
|
+
"address_zip_check": null
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"id": "card_103ewd2eZvKYlo2CzCsKfISG",
|
29
|
+
"object": "card",
|
30
|
+
"last4": "0003",
|
31
|
+
"brand": "Visa",
|
32
|
+
"exp_month": 5,
|
33
|
+
"exp_year": 2015,
|
34
|
+
"fingerprint": "Ffz7dpISyG2aKd76",
|
35
|
+
"customer": null,
|
36
|
+
"country": "US",
|
37
|
+
"name": null,
|
38
|
+
"address_line1": null,
|
39
|
+
"address_line2": null,
|
40
|
+
"address_city": null,
|
41
|
+
"address_state": null,
|
42
|
+
"address_zip": null,
|
43
|
+
"address_country": null,
|
44
|
+
"cvc_check": null,
|
45
|
+
"address_line1_check": null,
|
46
|
+
"address_zip_check": null
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"id": "card_103ewd2eZvKYlo2CzCsKfISH",
|
50
|
+
"object": "card",
|
51
|
+
"last4": "0004",
|
52
|
+
"brand": "Visa",
|
53
|
+
"exp_month": 5,
|
54
|
+
"exp_year": 2015,
|
55
|
+
"fingerprint": "Ffz7dpISyG2aKd77",
|
56
|
+
"customer": null,
|
57
|
+
"country": "US",
|
58
|
+
"name": null,
|
59
|
+
"address_line1": null,
|
60
|
+
"address_line2": null,
|
61
|
+
"address_city": null,
|
62
|
+
"address_state": null,
|
63
|
+
"address_zip": null,
|
64
|
+
"address_country": null,
|
65
|
+
"cvc_check": null,
|
66
|
+
"address_line1_check": null,
|
67
|
+
"address_zip_check": null
|
68
|
+
}
|
69
|
+
]
|
70
|
+
}
|
@@ -0,0 +1,146 @@
|
|
1
|
+
{
|
2
|
+
"object": "list",
|
3
|
+
"url": "/v1/charges",
|
4
|
+
"count": 3,
|
5
|
+
"data": [
|
6
|
+
{
|
7
|
+
"id": "ch_103ewb2eZvKYlo2CjopvmZyM",
|
8
|
+
"object": "charge",
|
9
|
+
"created": 1394732018,
|
10
|
+
"livemode": false,
|
11
|
+
"paid": true,
|
12
|
+
"amount": 500,
|
13
|
+
"currency": "usd",
|
14
|
+
"refunded": false,
|
15
|
+
"card": {
|
16
|
+
"id": "card_103ewb2eZvKYlo2CMKnx53Vg",
|
17
|
+
"object": "card",
|
18
|
+
"last4": "4242",
|
19
|
+
"brand": "Visa",
|
20
|
+
"exp_month": 1,
|
21
|
+
"exp_year": 2050,
|
22
|
+
"fingerprint": "ZYXWVUTSRQPONMLK",
|
23
|
+
"customer": null,
|
24
|
+
"country": "US",
|
25
|
+
"name": null,
|
26
|
+
"address_line1": null,
|
27
|
+
"address_line2": null,
|
28
|
+
"address_city": null,
|
29
|
+
"address_state": null,
|
30
|
+
"address_zip": null,
|
31
|
+
"address_country": null,
|
32
|
+
"cvc_check": "pass",
|
33
|
+
"address_line1_check": null,
|
34
|
+
"address_zip_check": null
|
35
|
+
},
|
36
|
+
"captured": true,
|
37
|
+
"refunds": [
|
38
|
+
{
|
39
|
+
"amount": 500,
|
40
|
+
"currency": "usd",
|
41
|
+
"created": 1394732152,
|
42
|
+
"object": "refund",
|
43
|
+
"balance_transaction": "txn_3ewdvdDggQXEhV"
|
44
|
+
}
|
45
|
+
],
|
46
|
+
"balance_transaction": "txn_103cQg2eZvKYlo2CYKVlR2nh",
|
47
|
+
"failure_message": null,
|
48
|
+
"failure_code": null,
|
49
|
+
"amount_refunded": 500,
|
50
|
+
"customer": null,
|
51
|
+
"invoice": null,
|
52
|
+
"description": null,
|
53
|
+
"dispute": null,
|
54
|
+
"metadata": {
|
55
|
+
}
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"id": "ch_103ewb2eZvKYlo2CjopvmZyN",
|
59
|
+
"object": "charge",
|
60
|
+
"created": 1394732019,
|
61
|
+
"livemode": false,
|
62
|
+
"paid": true,
|
63
|
+
"amount": 600,
|
64
|
+
"currency": "usd",
|
65
|
+
"refunded": false,
|
66
|
+
"card": {
|
67
|
+
"id": "card_103ewb2eZvKYlo2CMKnx53Vh",
|
68
|
+
"object": "card",
|
69
|
+
"last4": "4242",
|
70
|
+
"brand": "Visa",
|
71
|
+
"exp_month": 1,
|
72
|
+
"exp_year": 2050,
|
73
|
+
"fingerprint": "Xt5EWLLDS7FJjR1d",
|
74
|
+
"customer": null,
|
75
|
+
"country": "US",
|
76
|
+
"name": null,
|
77
|
+
"address_line1": null,
|
78
|
+
"address_line2": null,
|
79
|
+
"address_city": null,
|
80
|
+
"address_state": null,
|
81
|
+
"address_zip": null,
|
82
|
+
"address_country": null,
|
83
|
+
"cvc_check": "pass",
|
84
|
+
"address_line1_check": null,
|
85
|
+
"address_zip_check": null
|
86
|
+
},
|
87
|
+
"captured": true,
|
88
|
+
"refunds": [
|
89
|
+
],
|
90
|
+
"balance_transaction": "txn_103cQg2eZvKYlo2CYKVlR2ni",
|
91
|
+
"failure_message": null,
|
92
|
+
"failure_code": null,
|
93
|
+
"amount_refunded": 0,
|
94
|
+
"customer": null,
|
95
|
+
"invoice": null,
|
96
|
+
"description": null,
|
97
|
+
"dispute": null,
|
98
|
+
"metadata": {
|
99
|
+
}
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"id": "ch_103ewb2eZvKYlo2CjopvmZyO",
|
103
|
+
"object": "charge",
|
104
|
+
"created": 1394732020,
|
105
|
+
"livemode": false,
|
106
|
+
"paid": true,
|
107
|
+
"amount": 700,
|
108
|
+
"currency": "usd",
|
109
|
+
"refunded": false,
|
110
|
+
"card": {
|
111
|
+
"id": "card_103ewb2eZvKYlo2CMKnx53Vi",
|
112
|
+
"object": "card",
|
113
|
+
"last4": "4242",
|
114
|
+
"brand": "Visa",
|
115
|
+
"exp_month": 1,
|
116
|
+
"exp_year": 2050,
|
117
|
+
"fingerprint": "Xt5EWLLDS7FJjR1e",
|
118
|
+
"customer": null,
|
119
|
+
"country": "US",
|
120
|
+
"name": null,
|
121
|
+
"address_line1": null,
|
122
|
+
"address_line2": null,
|
123
|
+
"address_city": null,
|
124
|
+
"address_state": null,
|
125
|
+
"address_zip": null,
|
126
|
+
"address_country": null,
|
127
|
+
"cvc_check": "pass",
|
128
|
+
"address_line1_check": null,
|
129
|
+
"address_zip_check": null
|
130
|
+
},
|
131
|
+
"captured": true,
|
132
|
+
"refunds": [
|
133
|
+
],
|
134
|
+
"balance_transaction": "txn_103cQg2eZvKYlo2CYKVlR2nj",
|
135
|
+
"failure_message": null,
|
136
|
+
"failure_code": null,
|
137
|
+
"amount_refunded": 0,
|
138
|
+
"customer": null,
|
139
|
+
"invoice": null,
|
140
|
+
"description": null,
|
141
|
+
"dispute": null,
|
142
|
+
"metadata": {
|
143
|
+
}
|
144
|
+
}
|
145
|
+
]
|
146
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
{
|
2
|
+
"object": "list",
|
3
|
+
"url": "/v1/coupons",
|
4
|
+
"count": 3,
|
5
|
+
"data": [
|
6
|
+
{
|
7
|
+
"id": "25OFF",
|
8
|
+
"created": 1391687276,
|
9
|
+
"percent_off": 25,
|
10
|
+
"amount_off": null,
|
11
|
+
"currency": "usd",
|
12
|
+
"object": "coupon",
|
13
|
+
"livemode": false,
|
14
|
+
"duration": "repeating",
|
15
|
+
"redeem_by": null,
|
16
|
+
"max_redemptions": null,
|
17
|
+
"times_redeemed": 0,
|
18
|
+
"duration_in_months": 3,
|
19
|
+
"valid": true,
|
20
|
+
"metadata": {
|
21
|
+
}
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"id": "30OFF",
|
25
|
+
"created": 1391687277,
|
26
|
+
"percent_off": 30,
|
27
|
+
"amount_off": null,
|
28
|
+
"currency": "usd",
|
29
|
+
"object": "coupon",
|
30
|
+
"livemode": false,
|
31
|
+
"duration": "repeating",
|
32
|
+
"redeem_by": null,
|
33
|
+
"max_redemptions": null,
|
34
|
+
"times_redeemed": 0,
|
35
|
+
"duration_in_months": 3,
|
36
|
+
"valid": true,
|
37
|
+
"metadata": {
|
38
|
+
}
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"id": "35OFF",
|
42
|
+
"created": 1391687278,
|
43
|
+
"percent_off": 35,
|
44
|
+
"amount_off": null,
|
45
|
+
"currency": "usd",
|
46
|
+
"object": "coupon",
|
47
|
+
"livemode": false,
|
48
|
+
"duration": "repeating",
|
49
|
+
"redeem_by": null,
|
50
|
+
"max_redemptions": null,
|
51
|
+
"times_redeemed": 0,
|
52
|
+
"duration_in_months": 3,
|
53
|
+
"valid": true,
|
54
|
+
"metadata": {
|
55
|
+
}
|
56
|
+
}
|
57
|
+
]
|
58
|
+
}
|
@@ -0,0 +1,157 @@
|
|
1
|
+
{
|
2
|
+
"object": "list",
|
3
|
+
"url": "v1/customers",
|
4
|
+
"count": 3,
|
5
|
+
"data": [
|
6
|
+
{
|
7
|
+
"object": "customer",
|
8
|
+
"created": 1394731627,
|
9
|
+
"id": "abcdefghijklmnop",
|
10
|
+
"livemode": false,
|
11
|
+
"description": null,
|
12
|
+
"email": null,
|
13
|
+
"delinquent": false,
|
14
|
+
"metadata": {
|
15
|
+
},
|
16
|
+
"subscriptions": {
|
17
|
+
"object": "list",
|
18
|
+
"count": 0,
|
19
|
+
"url": "/v1/customers/abcdefghijklmnop/subscriptions",
|
20
|
+
"data": [
|
21
|
+
]
|
22
|
+
},
|
23
|
+
"discount": null,
|
24
|
+
"account_balance": 0,
|
25
|
+
"currency": "usd",
|
26
|
+
"cards": {
|
27
|
+
"object": "list",
|
28
|
+
"count": 1,
|
29
|
+
"url": "/v1/customers/abcdefghijklmnop/cards",
|
30
|
+
"data": [
|
31
|
+
{
|
32
|
+
"id": "card_1234567890ABCDEFghijklmn",
|
33
|
+
"object": "card",
|
34
|
+
"last4": "4242",
|
35
|
+
"brand": "Visa",
|
36
|
+
"exp_month": 10,
|
37
|
+
"exp_year": 2016,
|
38
|
+
"fingerprint": "ZYXWVUTSRQPONMLK",
|
39
|
+
"customer": "abcdefghijklmnop",
|
40
|
+
"country": "US",
|
41
|
+
"name": "person1@example.com",
|
42
|
+
"address_line1": null,
|
43
|
+
"address_line2": null,
|
44
|
+
"address_city": null,
|
45
|
+
"address_state": null,
|
46
|
+
"address_zip": null,
|
47
|
+
"address_country": null,
|
48
|
+
"cvc_check": "pass",
|
49
|
+
"address_line1_check": null,
|
50
|
+
"address_zip_check": null
|
51
|
+
}
|
52
|
+
]
|
53
|
+
},
|
54
|
+
"default_card": "card_1234567890ABCDEFghijklmn"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"object": "customer",
|
58
|
+
"created": 1394731628,
|
59
|
+
"id": "cus_3ewUPsNuSVb5hF",
|
60
|
+
"livemode": false,
|
61
|
+
"description": null,
|
62
|
+
"email": null,
|
63
|
+
"delinquent": false,
|
64
|
+
"metadata": {
|
65
|
+
},
|
66
|
+
"subscriptions": {
|
67
|
+
"object": "list",
|
68
|
+
"count": 0,
|
69
|
+
"url": "/v1/customers/cus_3ewUPsNuSVb5hF/subscriptions",
|
70
|
+
"data": [
|
71
|
+
]
|
72
|
+
},
|
73
|
+
"discount": null,
|
74
|
+
"account_balance": 0,
|
75
|
+
"currency": "usd",
|
76
|
+
"cards": {
|
77
|
+
"object": "list",
|
78
|
+
"count": 1,
|
79
|
+
"url": "/v1/customers/cus_3ewUPsNuSVb5hF/cards",
|
80
|
+
"data": [
|
81
|
+
{
|
82
|
+
"id": "card_103ewU2eZvKYlo2CVToIWv6R",
|
83
|
+
"object": "card",
|
84
|
+
"last4": "4242",
|
85
|
+
"brand": "Visa",
|
86
|
+
"exp_month": 10,
|
87
|
+
"exp_year": 2016,
|
88
|
+
"fingerprint": "Xt5EWLLDS7FJjR1d",
|
89
|
+
"customer": "cus_3ewUPsNuSVb5hF",
|
90
|
+
"country": "US",
|
91
|
+
"name": "person2@example.com",
|
92
|
+
"address_line1": null,
|
93
|
+
"address_line2": null,
|
94
|
+
"address_city": null,
|
95
|
+
"address_state": null,
|
96
|
+
"address_zip": null,
|
97
|
+
"address_country": null,
|
98
|
+
"cvc_check": "pass",
|
99
|
+
"address_line1_check": null,
|
100
|
+
"address_zip_check": null
|
101
|
+
}
|
102
|
+
]
|
103
|
+
},
|
104
|
+
"default_card": "card_103ewU2eZvKYlo2CVToIWv6R"
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"object": "customer",
|
108
|
+
"created": 1394731629,
|
109
|
+
"id": "cus_3ewUPsNuSVb5hG",
|
110
|
+
"livemode": false,
|
111
|
+
"description": null,
|
112
|
+
"email": null,
|
113
|
+
"delinquent": false,
|
114
|
+
"metadata": {
|
115
|
+
},
|
116
|
+
"subscriptions": {
|
117
|
+
"object": "list",
|
118
|
+
"count": 0,
|
119
|
+
"url": "/v1/customers/cus_3ewUPsNuSVb5hG/subscriptions",
|
120
|
+
"data": [
|
121
|
+
]
|
122
|
+
},
|
123
|
+
"discount": null,
|
124
|
+
"account_balance": 0,
|
125
|
+
"currency": "usd",
|
126
|
+
"cards": {
|
127
|
+
"object": "list",
|
128
|
+
"count": 1,
|
129
|
+
"url": "/v1/customers/cus_3ewUPsNuSVb5hG/cards",
|
130
|
+
"data": [
|
131
|
+
{
|
132
|
+
"id": "card_103ewU2eZvKYlo2CVToIWv6S",
|
133
|
+
"object": "card",
|
134
|
+
"last4": "4242",
|
135
|
+
"brand": "Visa",
|
136
|
+
"exp_month": 10,
|
137
|
+
"exp_year": 2016,
|
138
|
+
"fingerprint": "Xt5EWLLDS7FJjR1e",
|
139
|
+
"customer": "cus_3ewUPsNuSVb5hG",
|
140
|
+
"country": "US",
|
141
|
+
"name": "person3@example.com",
|
142
|
+
"address_line1": null,
|
143
|
+
"address_line2": null,
|
144
|
+
"address_city": null,
|
145
|
+
"address_state": null,
|
146
|
+
"address_zip": null,
|
147
|
+
"address_country": null,
|
148
|
+
"cvc_check": "pass",
|
149
|
+
"address_line1_check": null,
|
150
|
+
"address_zip_check": null
|
151
|
+
}
|
152
|
+
]
|
153
|
+
},
|
154
|
+
"default_card": "card_103ewU2eZvKYlo2CVToIWv6S"
|
155
|
+
}
|
156
|
+
]
|
157
|
+
}
|
@@ -0,0 +1,172 @@
|
|
1
|
+
{
|
2
|
+
"object": "list",
|
3
|
+
"url": "/v1/events",
|
4
|
+
"count": 3,
|
5
|
+
"data": [
|
6
|
+
{
|
7
|
+
"id": "evt_103ewb2eZvKYlo2Cz0MZagvE",
|
8
|
+
"created": 1394732019,
|
9
|
+
"livemode": false,
|
10
|
+
"type": "charge.succeeded",
|
11
|
+
"data": {
|
12
|
+
"object": {
|
13
|
+
"id": "ch_103ewb2eZvKYlo2CjopvmZyM",
|
14
|
+
"object": "charge",
|
15
|
+
"created": 1394732018,
|
16
|
+
"livemode": false,
|
17
|
+
"paid": true,
|
18
|
+
"amount": 500,
|
19
|
+
"currency": "usd",
|
20
|
+
"refunded": false,
|
21
|
+
"card": {
|
22
|
+
"id": "card_103ewb2eZvKYlo2CMKnx53Vg",
|
23
|
+
"object": "card",
|
24
|
+
"last4": "4242",
|
25
|
+
"brand": "Visa",
|
26
|
+
"exp_month": 1,
|
27
|
+
"exp_year": 2050,
|
28
|
+
"fingerprint": "ZYXWVUTSRQPONMLK",
|
29
|
+
"customer": null,
|
30
|
+
"country": "US",
|
31
|
+
"name": null,
|
32
|
+
"address_line1": null,
|
33
|
+
"address_line2": null,
|
34
|
+
"address_city": null,
|
35
|
+
"address_state": null,
|
36
|
+
"address_zip": null,
|
37
|
+
"address_country": null,
|
38
|
+
"cvc_check": "pass",
|
39
|
+
"address_line1_check": null,
|
40
|
+
"address_zip_check": null
|
41
|
+
},
|
42
|
+
"captured": true,
|
43
|
+
"refunds": [
|
44
|
+
],
|
45
|
+
"balance_transaction": "txn_103ewb2eZvKYlo2CfYA98A3q",
|
46
|
+
"failure_message": null,
|
47
|
+
"failure_code": null,
|
48
|
+
"amount_refunded": 0,
|
49
|
+
"customer": null,
|
50
|
+
"invoice": null,
|
51
|
+
"description": null,
|
52
|
+
"dispute": null,
|
53
|
+
"metadata": {
|
54
|
+
}
|
55
|
+
}
|
56
|
+
},
|
57
|
+
"object": "event",
|
58
|
+
"pending_webhooks": 0,
|
59
|
+
"request": "iar_3ewbt8K3BFha6A"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"id": "evt_103ewb2eZvKYlo2Cz0MZagvF",
|
63
|
+
"created": 1394732020,
|
64
|
+
"livemode": false,
|
65
|
+
"type": "charge.succeeded",
|
66
|
+
"data": {
|
67
|
+
"object": {
|
68
|
+
"id": "ch_103ewb2eZvKYlo2CjopvmZyN",
|
69
|
+
"object": "charge",
|
70
|
+
"created": 1394732019,
|
71
|
+
"livemode": false,
|
72
|
+
"paid": true,
|
73
|
+
"amount": 500,
|
74
|
+
"currency": "usd",
|
75
|
+
"refunded": false,
|
76
|
+
"card": {
|
77
|
+
"id": "card_103ewb2eZvKYlo2CMKnx53Vh",
|
78
|
+
"object": "card",
|
79
|
+
"last4": "4242",
|
80
|
+
"brand": "Visa",
|
81
|
+
"exp_month": 1,
|
82
|
+
"exp_year": 2050,
|
83
|
+
"fingerprint": "Xt5EWLLDS7FJjR1d",
|
84
|
+
"customer": null,
|
85
|
+
"country": "US",
|
86
|
+
"name": null,
|
87
|
+
"address_line1": null,
|
88
|
+
"address_line2": null,
|
89
|
+
"address_city": null,
|
90
|
+
"address_state": null,
|
91
|
+
"address_zip": null,
|
92
|
+
"address_country": null,
|
93
|
+
"cvc_check": "pass",
|
94
|
+
"address_line1_check": null,
|
95
|
+
"address_zip_check": null
|
96
|
+
},
|
97
|
+
"captured": true,
|
98
|
+
"refunds": [
|
99
|
+
],
|
100
|
+
"balance_transaction": "txn_103ewb2eZvKYlo2CfYA98A3r",
|
101
|
+
"failure_message": null,
|
102
|
+
"failure_code": null,
|
103
|
+
"amount_refunded": 0,
|
104
|
+
"customer": null,
|
105
|
+
"invoice": null,
|
106
|
+
"description": null,
|
107
|
+
"dispute": null,
|
108
|
+
"metadata": {
|
109
|
+
}
|
110
|
+
}
|
111
|
+
},
|
112
|
+
"object": "event",
|
113
|
+
"pending_webhooks": 0,
|
114
|
+
"request": "iar_3ewbt8K3BFha6B"
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"id": "evt_103ewb2eZvKYlo2Cz0MZagvG",
|
118
|
+
"created": 1394732021,
|
119
|
+
"livemode": false,
|
120
|
+
"type": "charge.succeeded",
|
121
|
+
"data": {
|
122
|
+
"object": {
|
123
|
+
"id": "ch_103ewb2eZvKYlo2CjopvmZyO",
|
124
|
+
"object": "charge",
|
125
|
+
"created": 1394732020,
|
126
|
+
"livemode": false,
|
127
|
+
"paid": true,
|
128
|
+
"amount": 500,
|
129
|
+
"currency": "usd",
|
130
|
+
"refunded": false,
|
131
|
+
"card": {
|
132
|
+
"id": "card_103ewb2eZvKYlo2CMKnx53Vi",
|
133
|
+
"object": "card",
|
134
|
+
"last4": "4242",
|
135
|
+
"brand": "Visa",
|
136
|
+
"exp_month": 1,
|
137
|
+
"exp_year": 2050,
|
138
|
+
"fingerprint": "Xt5EWLLDS7FJjR1e",
|
139
|
+
"customer": null,
|
140
|
+
"country": "US",
|
141
|
+
"name": null,
|
142
|
+
"address_line1": null,
|
143
|
+
"address_line2": null,
|
144
|
+
"address_city": null,
|
145
|
+
"address_state": null,
|
146
|
+
"address_zip": null,
|
147
|
+
"address_country": null,
|
148
|
+
"cvc_check": "pass",
|
149
|
+
"address_line1_check": null,
|
150
|
+
"address_zip_check": null
|
151
|
+
},
|
152
|
+
"captured": true,
|
153
|
+
"refunds": [
|
154
|
+
],
|
155
|
+
"balance_transaction": "txn_103ewb2eZvKYlo2CfYA98A3s",
|
156
|
+
"failure_message": null,
|
157
|
+
"failure_code": null,
|
158
|
+
"amount_refunded": 0,
|
159
|
+
"customer": null,
|
160
|
+
"invoice": null,
|
161
|
+
"description": null,
|
162
|
+
"dispute": null,
|
163
|
+
"metadata": {
|
164
|
+
}
|
165
|
+
}
|
166
|
+
},
|
167
|
+
"object": "event",
|
168
|
+
"pending_webhooks": 0,
|
169
|
+
"request": "iar_3ewbt8K3BFha6C"
|
170
|
+
}
|
171
|
+
]
|
172
|
+
}
|