forked from stripe-ruby-mock/stripe-ruby-mock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
payment_intent.requires_action.json
191 lines (190 loc) · 11.5 KB
/
payment_intent.requires_action.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
{
"id": "evt_000000000000000000000000",
"object": "event",
"api_version": "2020-08-27",
"created": 1648320004,
"data": {
"object": {
"id": "pi_000000000000000000000000",
"object": "payment_intent",
"amount": 2000,
"amount_capturable": 0,
"amount_received": 0,
"application": null,
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"charges": {
"object": "list",
"data": [
{
"id": "ch_000000000000000000000000",
"object": "charge",
"amount": 2000,
"amount_captured": 0,
"amount_refunded": 0,
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": null,
"billing_details": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"email": null,
"name": null,
"phone": null
},
"calculated_statement_descriptor": "EXAMPLECOMPANY",
"captured": false,
"created": 1648320002,
"currency": "usd",
"customer": "cus_00000000000000",
"description": "Payment for Invoice",
"destination": null,
"dispute": null,
"disputed": false,
"failure_code": "authentication_required",
"failure_message": "Your card was declined. This transaction requires authentication.",
"fraud_details": {
},
"invoice": "in_000000000000000000000000",
"livemode": false,
"metadata": {
},
"on_behalf_of": null,
"order": null,
"outcome": {
"network_status": "declined_by_network",
"reason": "authentication_required",
"risk_level": "normal",
"risk_score": 15,
"seller_message": "The bank returned the decline code `authentication_required`.",
"type": "issuer_declined"
},
"paid": false,
"payment_intent": "pi_000000000000000000000000",
"payment_method": "pm_000000000000000000000000",
"payment_method_details": {
"card": {
"brand": "visa",
"checks": {
"address_line1_check": null,
"address_postal_code_check": null,
"cvc_check": "pass"
},
"country": "IE",
"exp_month": 7,
"exp_year": 2025,
"fingerprint": "R0zFsMh6EQNC0f1H",
"funding": "credit",
"installments": null,
"last4": "3220",
"mandate": null,
"network": "visa",
"three_d_secure": null,
"wallet": null
},
"type": "card"
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": null,
"refunded": false,
"refunds": {
"object": "list",
"data": [
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_000000000000000000000000/refunds"
},
"review": null,
"shipping": null,
"source": null,
"source_transfer": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "failed",
"transfer_data": null,
"transfer_group": null
}
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_000000000000000000000000"
},
"client_secret": "pi_000000000000000000000000_secret_0000000000000000000000000",
"confirmation_method": "automatic",
"created": 1648320001,
"currency": "usd",
"customer": "cus_00000000000000",
"description": "Payment for Invoice",
"invoice": "in_000000000000000000000000",
"last_payment_error": null,
"livemode": false,
"metadata": {
},
"next_action": {
"type": "use_stripe_sdk",
"use_stripe_sdk": {
"type": "stripe_3ds2_fingerprint",
"merchant": "acct_0000000000000000",
"three_d_secure_2_source": "src_000000000000000000000000",
"directory_server_name": "visa",
"server_transaction_id": "b973c110-2ca1-46fa-8bce-dc18259d145f",
"three_ds_method_url": "",
"three_ds_optimizations": "k",
"directory_server_encryption": {
"directory_server_id": "A000000003",
"algorithm": "RSA",
"certificate": "-----BEGIN CERTIFICATE-----\nMIIGAzCCA+ugAwIBAgIQDa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WdOXAbsfwQiT6qnRio+p82VyqlY8Jt6VVA6CDy/iHKwcj1ELEnDQfVv9\nhedoxmnQ6xe/nK8czclu9hQJRv5Lh9gk9Q8DKK2nmgzZ8SSQ+lr3mSSeY8JOMRlE\n+RKdOQIChWthTJKh7w==\n-----END CERTIFICATE-----\n"
]
},
"one_click_authn": null
}
},
"on_behalf_of": null,
"payment_method": "pm_000000000000000000000000",
"payment_method_options": {
"card": {
"installments": null,
"mandate_options": null,
"network": null,
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card"
],
"processing": null,
"receipt_email": null,
"review": null,
"setup_future_usage": "off_session",
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "requires_action",
"transfer_data": null,
"transfer_group": null
}
},
"livemode": false,
"pending_webhooks": 2,
"request": {
"id": "req_00000000000000",
"idempotency_key": "4e03370d-8b01-4847-9891-0092e480e875"
},
"type": "payment_intent.requires_action"
}