2016-04-07 12:28:25 +02:00
|
|
|
---
|
|
|
|
http_interactions:
|
|
|
|
- request:
|
|
|
|
method: post
|
2019-09-11 16:19:24 +02:00
|
|
|
uri: https://api.stripe.com/v1/payment_methods
|
2016-04-07 12:28:25 +02:00
|
|
|
body:
|
|
|
|
encoding: UTF-8
|
2019-09-11 16:19:24 +02:00
|
|
|
string: type=card&card[number]=4242424242424242&card[exp_month]=4&card[exp_year]=2020&card[cvc]=314
|
2016-04-07 12:28:25 +02:00
|
|
|
headers:
|
|
|
|
User-Agent:
|
2019-09-11 16:19:24 +02:00
|
|
|
- Stripe/v1 RubyBindings/5.1.1
|
2016-04-07 12:28:25 +02:00
|
|
|
Authorization:
|
2019-09-11 16:19:24 +02:00
|
|
|
- Bearer sk_test_mGokO9TGtrVxMOyK4yZiktBE
|
2016-04-07 12:28:25 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/x-www-form-urlencoded
|
2019-09-11 16:19:24 +02:00
|
|
|
X-Stripe-Client-Telemetry:
|
|
|
|
- '{"last_request_metrics":{"request_id":"req_h6p1Z4uIchcuNH","request_duration_ms":409}}'
|
2018-07-24 14:36:18 +02:00
|
|
|
Stripe-Version:
|
2019-09-11 16:19:24 +02:00
|
|
|
- '2019-08-14'
|
2016-04-07 12:28:25 +02:00
|
|
|
X-Stripe-Client-User-Agent:
|
2019-09-11 16:19:24 +02:00
|
|
|
- '{"bindings_version":"5.1.1","lang":"ruby","lang_version":"2.3.6 p384 (2017-12-14)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
|
|
|
version 4.15.0-62-generic (buildd@lcy01-amd64-024) (gcc version 7.4.0 (Ubuntu
|
|
|
|
7.4.0-1ubuntu1~18.04.1)) #69-Ubuntu SMP Wed Sep 4 20:55:53 UTC 2019","hostname":"Sleede-SylvainPC"}'
|
|
|
|
Accept-Encoding:
|
|
|
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
|
|
Accept:
|
|
|
|
- "*/*"
|
2016-04-07 12:28:25 +02:00
|
|
|
response:
|
|
|
|
status:
|
|
|
|
code: 200
|
|
|
|
message: OK
|
|
|
|
headers:
|
|
|
|
Server:
|
|
|
|
- nginx
|
|
|
|
Date:
|
2019-09-11 16:19:24 +02:00
|
|
|
- Wed, 11 Sep 2019 13:31:30 GMT
|
2016-04-07 12:28:25 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/json
|
|
|
|
Content-Length:
|
2019-09-11 16:19:24 +02:00
|
|
|
- '840'
|
2016-04-07 12:28:25 +02:00
|
|
|
Connection:
|
|
|
|
- keep-alive
|
|
|
|
Access-Control-Allow-Credentials:
|
|
|
|
- 'true'
|
|
|
|
Access-Control-Allow-Methods:
|
|
|
|
- GET, POST, HEAD, OPTIONS, DELETE
|
|
|
|
Access-Control-Allow-Origin:
|
|
|
|
- "*"
|
2017-09-18 11:00:20 +02:00
|
|
|
Access-Control-Expose-Headers:
|
2018-07-24 14:36:18 +02:00
|
|
|
- Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required
|
2016-04-07 12:28:25 +02:00
|
|
|
Access-Control-Max-Age:
|
|
|
|
- '300'
|
|
|
|
Cache-Control:
|
|
|
|
- no-cache, no-store
|
|
|
|
Request-Id:
|
2019-09-11 16:19:24 +02:00
|
|
|
- req_yJbCiyFMrrLeji
|
2016-04-07 12:28:25 +02:00
|
|
|
Stripe-Version:
|
2019-09-11 16:19:24 +02:00
|
|
|
- '2019-08-14'
|
2016-04-07 12:28:25 +02:00
|
|
|
Strict-Transport-Security:
|
2017-12-14 16:39:53 +01:00
|
|
|
- max-age=31556926; includeSubDomains; preload
|
2016-04-07 12:28:25 +02:00
|
|
|
body:
|
|
|
|
encoding: UTF-8
|
|
|
|
string: |
|
|
|
|
{
|
2019-09-11 16:19:24 +02:00
|
|
|
"id": "pm_1FHVuv2sOmf47Nz9qI60kcA1",
|
|
|
|
"object": "payment_method",
|
|
|
|
"billing_details": {
|
|
|
|
"address": {
|
|
|
|
"city": null,
|
|
|
|
"country": null,
|
|
|
|
"line1": null,
|
|
|
|
"line2": null,
|
|
|
|
"postal_code": null,
|
|
|
|
"state": null
|
|
|
|
},
|
|
|
|
"email": null,
|
|
|
|
"name": null,
|
|
|
|
"phone": null
|
|
|
|
},
|
2016-04-07 12:28:25 +02:00
|
|
|
"card": {
|
2019-09-11 16:19:24 +02:00
|
|
|
"brand": "visa",
|
|
|
|
"checks": {
|
|
|
|
"address_line1_check": null,
|
|
|
|
"address_postal_code_check": null,
|
|
|
|
"cvc_check": "unchecked"
|
|
|
|
},
|
2016-04-07 12:28:25 +02:00
|
|
|
"country": "US",
|
|
|
|
"exp_month": 4,
|
2019-01-14 12:45:17 +01:00
|
|
|
"exp_year": 2020,
|
2016-04-07 12:28:25 +02:00
|
|
|
"fingerprint": "o52jybR7bnmNn6AT",
|
|
|
|
"funding": "credit",
|
2019-09-11 16:19:24 +02:00
|
|
|
"generated_from": null,
|
2016-04-07 12:28:25 +02:00
|
|
|
"last4": "4242",
|
2019-09-11 16:19:24 +02:00
|
|
|
"three_d_secure_usage": {
|
|
|
|
"supported": true
|
2018-09-18 15:38:04 +02:00
|
|
|
},
|
2019-09-11 16:19:24 +02:00
|
|
|
"wallet": null
|
2016-04-07 12:28:25 +02:00
|
|
|
},
|
2019-09-11 16:19:24 +02:00
|
|
|
"created": 1568208690,
|
|
|
|
"customer": null,
|
2016-04-07 12:28:25 +02:00
|
|
|
"livemode": false,
|
2019-09-11 16:19:24 +02:00
|
|
|
"metadata": {
|
|
|
|
},
|
|
|
|
"type": "card"
|
2016-04-07 12:28:25 +02:00
|
|
|
}
|
2017-09-18 11:00:20 +02:00
|
|
|
http_version:
|
2019-09-11 16:19:24 +02:00
|
|
|
recorded_at: Wed, 11 Sep 2019 13:31:30 GMT
|
2016-04-07 12:28:25 +02:00
|
|
|
recorded_with: VCR 3.0.1
|