1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-12 23:09:03 +01:00
fab-manager/test/vcr_cassettes/subscriptions_user_create_success.yml

523 lines
17 KiB
YAML
Raw Normal View History

2016-04-06 15:57:27 +02:00
---
http_interactions:
- request:
method: post
uri: https://api.stripe.com/v1/payment_methods
2016-04-06 15:57:27 +02:00
body:
encoding: UTF-8
string: type=card&card[number]=4242424242424242&card[exp_month]=4&card[exp_year]=2020&card[cvc]=314
2016-04-06 15:57:27 +02:00
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.1.1
2016-04-06 15:57:27 +02:00
Authorization:
- Bearer sk_test_mGokO9TGtrVxMOyK4yZiktBE
2016-04-06 15:57:27 +02:00
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_Y5D9fvjMJ2wSMr","request_duration_ms":537}}'
Stripe-Version:
- '2019-08-14'
2016-04-06 15:57:27 +02:00
X-Stripe-Client-User-Agent:
- '{"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-06 15:57:27 +02:00
response:
status:
code: 200
message: OK
headers:
Server:
- nginx
Date:
- Wed, 11 Sep 2019 13:31:24 GMT
2016-04-06 15:57:27 +02:00
Content-Type:
- application/json
Content-Length:
- '840'
2016-04-06 15:57:27 +02:00
Connection:
- keep-alive
Access-Control-Allow-Credentials:
- 'true'
Access-Control-Allow-Methods:
- GET, POST, HEAD, OPTIONS, DELETE
Access-Control-Allow-Origin:
- "*"
Access-Control-Expose-Headers:
- Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required
2016-04-06 15:57:27 +02:00
Access-Control-Max-Age:
- '300'
Cache-Control:
- no-cache, no-store
Request-Id:
- req_MbZEeCPk82V4u1
2016-04-06 15:57:27 +02:00
Stripe-Version:
- '2019-08-14'
2016-04-06 15:57:27 +02:00
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
2016-04-06 15:57:27 +02:00
body:
encoding: UTF-8
string: |
{
"id": "pm_1FHVuq2sOmf47Nz98IIIuGZY",
"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-06 15:57:27 +02:00
"card": {
"brand": "visa",
"checks": {
"address_line1_check": null,
"address_postal_code_check": null,
"cvc_check": "unchecked"
},
2016-04-06 15:57:27 +02:00
"country": "US",
"exp_month": 4,
"exp_year": 2020,
2016-04-06 15:57:27 +02:00
"fingerprint": "o52jybR7bnmNn6AT",
"funding": "credit",
"generated_from": null,
2016-04-06 15:57:27 +02:00
"last4": "4242",
"three_d_secure_usage": {
"supported": true
2018-09-18 15:38:04 +02:00
},
"wallet": null
2016-04-06 15:57:27 +02:00
},
"created": 1568208684,
"customer": null,
2016-04-06 15:57:27 +02:00
"livemode": false,
"metadata": {
},
"type": "card"
2016-04-06 15:57:27 +02:00
}
http_version:
recorded_at: Wed, 11 Sep 2019 13:31:24 GMT
2016-04-06 15:57:27 +02:00
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
2016-04-06 15:57:27 +02:00
body:
encoding: UTF-8
string: payment_method=pm_1FHVuq2sOmf47Nz98IIIuGZY&amount=3000&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8Di1wjdVktv5kt
2016-04-06 15:57:27 +02:00
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.1.1
2016-04-06 15:57:27 +02:00
Authorization:
- Bearer sk_test_mGokO9TGtrVxMOyK4yZiktBE
2016-04-06 15:57:27 +02:00
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_MbZEeCPk82V4u1","request_duration_ms":518}}'
Stripe-Version:
- '2019-08-14'
2016-04-06 15:57:27 +02:00
X-Stripe-Client-User-Agent:
- '{"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-06 15:57:27 +02:00
response:
status:
code: 200
message: OK
headers:
Server:
- nginx
Date:
- Wed, 11 Sep 2019 13:31:26 GMT
2016-04-06 15:57:27 +02:00
Content-Type:
- application/json
Content-Length:
- '4030'
2016-04-06 15:57:27 +02:00
Connection:
- keep-alive
Access-Control-Allow-Credentials:
- 'true'
Access-Control-Allow-Methods:
- GET, POST, HEAD, OPTIONS, DELETE
Access-Control-Allow-Origin:
- "*"
Access-Control-Expose-Headers:
- Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required
2016-04-06 15:57:27 +02:00
Access-Control-Max-Age:
- '300'
Cache-Control:
- no-cache, no-store
Request-Id:
- req_zqpgajtd9oa6dN
2016-04-06 15:57:27 +02:00
Stripe-Version:
- '2019-08-14'
2016-04-06 15:57:27 +02:00
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
2016-04-06 15:57:27 +02:00
body:
encoding: UTF-8
string: |
{
"id": "pi_1FHVur2sOmf47Nz9tciS897v",
"object": "payment_intent",
"amount": 3000,
"amount_capturable": 0,
"amount_received": 3000,
"application": null,
"application_fee_amount": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"charges": {
"object": "list",
"data": [
{
"id": "ch_1FHVur2sOmf47Nz9mZbZnRf8",
"object": "charge",
"amount": 3000,
"amount_refunded": 0,
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1FHVur2sOmf47Nz9y3tMa3Dn",
"billing_details": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"email": null,
"name": null,
"phone": null
2018-09-18 15:38:04 +02:00
},
"captured": true,
"created": 1568208685,
"currency": "usd",
2019-07-10 11:33:46 +02:00
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
"destination": null,
"dispute": null,
"failure_code": null,
"failure_message": null,
"fraud_details": {
2019-07-10 11:33:46 +02:00
},
"invoice": null,
2019-07-10 11:33:46 +02:00
"livemode": false,
"metadata": {
},
"on_behalf_of": null,
"order": null,
"outcome": {
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 15,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1FHVur2sOmf47Nz9tciS897v",
"payment_method": "pm_1FHVuq2sOmf47Nz98IIIuGZY",
"payment_method_details": {
"card": {
"brand": "visa",
"checks": {
"address_line1_check": null,
"address_postal_code_check": null,
"cvc_check": "pass"
},
"country": "US",
"exp_month": 4,
"exp_year": 2020,
"fingerprint": "o52jybR7bnmNn6AT",
"funding": "credit",
"last4": "4242",
"three_d_secure": null,
"wallet": null
2019-07-10 11:33:46 +02:00
},
"type": "card"
2019-07-10 11:33:46 +02:00
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1FHVur2sOmf47Nz9mZbZnRf8/rcpt_Fn67fW5QXxjjHCsqPLCRRnNAV6qDZuQ",
"refunded": false,
"refunds": {
2018-12-10 17:20:23 +01:00
"object": "list",
"data": [
2018-12-10 17:20:23 +01:00
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1FHVur2sOmf47Nz9mZbZnRf8/refunds"
},
"review": null,
"shipping": null,
"source": null,
"source_transfer": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "succeeded",
"transfer_data": null,
"transfer_group": null
}
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1FHVur2sOmf47Nz9tciS897v"
},
"client_secret": "pi_1FHVur2sOmf47Nz9tciS897v_secret_hrYtox1xbTOJWcgxp9nirdHwF",
"confirmation_method": "manual",
"created": 1568208685,
"currency": "usd",
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
"invoice": null,
"last_payment_error": null,
"livemode": false,
2018-09-18 15:38:04 +02:00
"metadata": {
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1FHVuq2sOmf47Nz98IIIuGZY",
"payment_method_options": {
"card": {
"request_three_d_secure": "automatic"
2016-04-06 15:57:27 +02:00
}
},
"payment_method_types": [
"card"
2016-04-06 15:57:27 +02:00
],
"receipt_email": null,
"review": null,
"setup_future_usage": null,
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "succeeded",
"transfer_data": null,
"transfer_group": null
2016-04-06 15:57:27 +02:00
}
http_version:
recorded_at: Wed, 11 Sep 2019 13:31:26 GMT
2016-04-06 15:57:27 +02:00
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents/pi_1FHVur2sOmf47Nz9tciS897v
2016-04-06 15:57:27 +02:00
body:
encoding: UTF-8
string: description=Invoice+reference%3A+1909001%2FVL
2016-04-06 15:57:27 +02:00
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.1.1
2016-04-06 15:57:27 +02:00
Authorization:
- Bearer sk_test_mGokO9TGtrVxMOyK4yZiktBE
2016-04-06 15:57:27 +02:00
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_zqpgajtd9oa6dN","request_duration_ms":1093}}'
Stripe-Version:
- '2019-08-14'
2016-04-06 15:57:27 +02:00
X-Stripe-Client-User-Agent:
- '{"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-06 15:57:27 +02:00
response:
status:
code: 200
message: OK
headers:
Server:
- nginx
Date:
- Wed, 11 Sep 2019 13:31:26 GMT
2016-04-06 15:57:27 +02:00
Content-Type:
- application/json
Content-Length:
- '4057'
2016-04-06 15:57:27 +02:00
Connection:
- keep-alive
Access-Control-Allow-Credentials:
- 'true'
Access-Control-Allow-Methods:
- GET, POST, HEAD, OPTIONS, DELETE
Access-Control-Allow-Origin:
- "*"
Access-Control-Expose-Headers:
- Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required
2016-04-06 15:57:27 +02:00
Access-Control-Max-Age:
- '300'
Cache-Control:
- no-cache, no-store
Request-Id:
- req_sYC1AgInF2FGSu
2016-04-06 15:57:27 +02:00
Stripe-Version:
- '2019-08-14'
2016-04-06 15:57:27 +02:00
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
2016-04-06 15:57:27 +02:00
body:
encoding: UTF-8
string: |
{
"id": "pi_1FHVur2sOmf47Nz9tciS897v",
"object": "payment_intent",
"amount": 3000,
"amount_capturable": 0,
"amount_received": 3000,
"application": null,
"application_fee_amount": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"charges": {
"object": "list",
"data": [
{
"id": "ch_1FHVur2sOmf47Nz9mZbZnRf8",
"object": "charge",
"amount": 3000,
"amount_refunded": 0,
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1FHVur2sOmf47Nz9y3tMa3Dn",
"billing_details": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"state": null
2018-12-10 17:20:23 +01:00
},
"email": null,
"name": null,
"phone": null
2018-12-10 17:20:23 +01:00
},
"captured": true,
"created": 1568208685,
"currency": "usd",
2019-07-10 11:33:46 +02:00
"customer": "cus_8Di1wjdVktv5kt",
"description": null,
"destination": null,
"dispute": null,
"failure_code": null,
"failure_message": null,
"fraud_details": {
2019-07-10 11:33:46 +02:00
},
"invoice": null,
2019-07-10 11:33:46 +02:00
"livemode": false,
"metadata": {
},
"on_behalf_of": null,
"order": null,
"outcome": {
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 15,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1FHVur2sOmf47Nz9tciS897v",
"payment_method": "pm_1FHVuq2sOmf47Nz98IIIuGZY",
"payment_method_details": {
"card": {
"brand": "visa",
"checks": {
"address_line1_check": null,
"address_postal_code_check": null,
"cvc_check": "pass"
},
"country": "US",
"exp_month": 4,
"exp_year": 2020,
"fingerprint": "o52jybR7bnmNn6AT",
"funding": "credit",
"last4": "4242",
"three_d_secure": null,
"wallet": null
2019-07-10 11:33:46 +02:00
},
"type": "card"
2019-07-10 11:33:46 +02:00
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1FHVur2sOmf47Nz9mZbZnRf8/rcpt_Fn67fW5QXxjjHCsqPLCRRnNAV6qDZuQ",
"refunded": false,
"refunds": {
2018-12-10 17:20:23 +01:00
"object": "list",
"data": [
2018-12-10 17:20:23 +01:00
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1FHVur2sOmf47Nz9mZbZnRf8/refunds"
2018-12-10 17:20:23 +01:00
},
"review": null,
"shipping": null,
"source": null,
"source_transfer": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "succeeded",
"transfer_data": null,
"transfer_group": null
}
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_1FHVur2sOmf47Nz9tciS897v"
},
"client_secret": "pi_1FHVur2sOmf47Nz9tciS897v_secret_hrYtox1xbTOJWcgxp9nirdHwF",
"confirmation_method": "manual",
"created": 1568208685,
"currency": "usd",
2016-04-06 15:57:27 +02:00
"customer": "cus_8Di1wjdVktv5kt",
"description": "Invoice reference: 1909001/VL",
"invoice": null,
"last_payment_error": null,
"livemode": false,
2018-09-18 15:38:04 +02:00
"metadata": {
},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1FHVuq2sOmf47Nz98IIIuGZY",
"payment_method_options": {
"card": {
"request_three_d_secure": "automatic"
}
2016-04-06 15:57:27 +02:00
},
"payment_method_types": [
"card"
],
"receipt_email": null,
"review": null,
"setup_future_usage": null,
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "succeeded",
"transfer_data": null,
"transfer_group": null
2016-04-06 15:57:27 +02:00
}
http_version:
recorded_at: Wed, 11 Sep 2019 13:31:26 GMT
2016-04-06 15:57:27 +02:00
recorded_with: VCR 3.0.1