1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/test/vcr_cassettes/subscriptions_user_renew_failed.yml

417 lines
14 KiB
YAML

---
http_interactions:
- request:
method: post
uri: https://api.stripe.com/v1/payment_methods
body:
encoding: UTF-8
string: type=card&card[number]=4000000000000002&card[exp_month]=4&card[exp_year]=2020&card[cvc]=314
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.1.1
Authorization:
- Bearer sk_test_mGokO9TGtrVxMOyK4yZiktBE
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_yJbCiyFMrrLeji","request_duration_ms":507}}'
Stripe-Version:
- '2019-08-14'
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:
- "*/*"
response:
status:
code: 200
message: OK
headers:
Server:
- nginx
Date:
- Wed, 11 Sep 2019 13:31:31 GMT
Content-Type:
- application/json
Content-Length:
- '840'
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
Access-Control-Max-Age:
- '300'
Cache-Control:
- no-cache, no-store
Request-Id:
- req_nIIa4tzsTuL8pO
Stripe-Version:
- '2019-08-14'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"id": "pm_1FHVux2sOmf47Nz9Zg4MqPHw",
"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
},
"card": {
"brand": "visa",
"checks": {
"address_line1_check": null,
"address_postal_code_check": null,
"cvc_check": "unchecked"
},
"country": "US",
"exp_month": 4,
"exp_year": 2020,
"fingerprint": "xsVM9Mfv9kfwhRSL",
"funding": "credit",
"generated_from": null,
"last4": "0002",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1568208691,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
}
http_version:
recorded_at: Wed, 11 Sep 2019 13:31:31 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
body:
encoding: UTF-8
string: payment_method=pm_1FHVux2sOmf47Nz9Zg4MqPHw&amount=3000&currency=usd&confirmation_method=manual&confirm=true&customer=cus_8E2ys9zDZgetWX
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.1.1
Authorization:
- Bearer sk_test_mGokO9TGtrVxMOyK4yZiktBE
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_nIIa4tzsTuL8pO","request_duration_ms":589}}'
Stripe-Version:
- '2019-08-14'
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:
- "*/*"
response:
status:
code: 402
message: Payment Required
headers:
Server:
- nginx
Date:
- Wed, 11 Sep 2019 13:31:33 GMT
Content-Type:
- application/json
Content-Length:
- '7433'
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
Access-Control-Max-Age:
- '300'
Cache-Control:
- no-cache, no-store
Request-Id:
- req_wzQsR7xnkIbZ2x
Stripe-Version:
- '2019-08-14'
Strict-Transport-Security:
- max-age=31556926; includeSubDomains; preload
body:
encoding: UTF-8
string: |
{
"error": {
"charge": "ch_1FHVuy2sOmf47Nz9fKgXiEwt",
"code": "card_declined",
"decline_code": "generic_decline",
"doc_url": "https://stripe.com/docs/error-codes/card-declined",
"message": "Your card was declined.",
"payment_intent": {
"id": "pi_1FHVuy2sOmf47Nz9utdUTYA2",
"object": "payment_intent",
"amount": 3000,
"amount_capturable": 0,
"amount_received": 0,
"application": null,
"application_fee_amount": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"charges": {
"object": "list",
"data": [
{
"id": "ch_1FHVuy2sOmf47Nz9fKgXiEwt",
"object": "charge",
"amount": 3000,
"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
},
"captured": false,
"created": 1568208692,
"currency": "usd",
"customer": "cus_8E2ys9zDZgetWX",
"description": null,
"destination": null,
"dispute": null,
"failure_code": "card_declined",
"failure_message": "Your card was declined.",
"fraud_details": {
},
"invoice": null,
"livemode": false,
"metadata": {
},
"on_behalf_of": null,
"order": null,
"outcome": {
"network_status": "declined_by_network",
"reason": "generic_decline",
"risk_level": "normal",
"risk_score": 30,
"seller_message": "The bank did not return any further details with this decline.",
"type": "issuer_declined"
},
"paid": false,
"payment_intent": "pi_1FHVuy2sOmf47Nz9utdUTYA2",
"payment_method": "pm_1FHVux2sOmf47Nz9Zg4MqPHw",
"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": "xsVM9Mfv9kfwhRSL",
"funding": "credit",
"last4": "0002",
"three_d_secure": null,
"wallet": null
},
"type": "card"
},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1FHVuy2sOmf47Nz9fKgXiEwt/rcpt_Fn67scvM2L2uxrCO42FtaMRX4P7RJQg",
"refunded": false,
"refunds": {
"object": "list",
"data": [
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1FHVuy2sOmf47Nz9fKgXiEwt/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_1FHVuy2sOmf47Nz9utdUTYA2"
},
"client_secret": "pi_1FHVuy2sOmf47Nz9utdUTYA2_secret_Qb3BdfLX8cTgumUQqo3TOvpDV",
"confirmation_method": "manual",
"created": 1568208692,
"currency": "usd",
"customer": "cus_8E2ys9zDZgetWX",
"description": null,
"invoice": null,
"last_payment_error": {
"charge": "ch_1FHVuy2sOmf47Nz9fKgXiEwt",
"code": "card_declined",
"decline_code": "generic_decline",
"doc_url": "https://stripe.com/docs/error-codes/card-declined",
"message": "Your card was declined.",
"payment_method": {
"id": "pm_1FHVux2sOmf47Nz9Zg4MqPHw",
"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
},
"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": "xsVM9Mfv9kfwhRSL",
"funding": "credit",
"generated_from": null,
"last4": "0002",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1568208691,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
},
"type": "card_error"
},
"livemode": false,
"metadata": {
},
"next_action": null,
"on_behalf_of": null,
"payment_method": null,
"payment_method_options": {
"card": {
"request_three_d_secure": "automatic"
}
},
"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": "requires_payment_method",
"transfer_data": null,
"transfer_group": null
},
"payment_method": {
"id": "pm_1FHVux2sOmf47Nz9Zg4MqPHw",
"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
},
"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": "xsVM9Mfv9kfwhRSL",
"funding": "credit",
"generated_from": null,
"last4": "0002",
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1568208691,
"customer": null,
"livemode": false,
"metadata": {
},
"type": "card"
},
"type": "card_error"
}
}
http_version:
recorded_at: Wed, 11 Sep 2019 13:31:33 GMT
recorded_with: VCR 3.0.1