mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-10 21:24:20 +01:00
531 lines
18 KiB
YAML
531 lines
18 KiB
YAML
---
|
|
http_interactions:
|
|
- request:
|
|
method: post
|
|
uri: https://api.stripe.com/v1/payment_methods
|
|
body:
|
|
encoding: UTF-8
|
|
string: type=card&card[number]=4242424242424242&card[exp_month]=4&card[exp_year]=2021&card[cvc]=314
|
|
headers:
|
|
User-Agent:
|
|
- Stripe/v1 RubyBindings/5.1.1
|
|
Authorization:
|
|
- Bearer sk_test_testfaketestfaketestfake
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
X-Stripe-Client-Telemetry:
|
|
- '{"last_request_metrics":{"request_id":"req_qJlAIwLHBL3Eaj","request_duration_ms":590}}'
|
|
Stripe-Version:
|
|
- '2019-08-14'
|
|
X-Stripe-Client-User-Agent:
|
|
- '{"bindings_version":"5.1.1","lang":"ruby","lang_version":"2.3.8 p459 (2018-10-18)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
|
version 5.5.5-arch1-1 (linux@archlinux) (gcc version 9.2.1 20200130 (Arch
|
|
Linux 9.2.1+20200130-2)) #1 SMP PREEMPT Thu, 20 Feb 2020 18:23:09 +0000","hostname":"Sylvain-desktop"}'
|
|
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:
|
|
- Tue, 03 Mar 2020 14:55:22 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_dfmAuwdRAZxOVT
|
|
Stripe-Version:
|
|
- '2019-08-14'
|
|
Strict-Transport-Security:
|
|
- max-age=31556926; includeSubDomains; preload
|
|
body:
|
|
encoding: UTF-8
|
|
string: |
|
|
{
|
|
"id": "pm_1GIc9W2sOmf47Nz9xOphAQQe",
|
|
"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": 2021,
|
|
"fingerprint": "o52jybR7bnmNn6AT",
|
|
"funding": "credit",
|
|
"generated_from": null,
|
|
"last4": "4242",
|
|
"three_d_secure_usage": {
|
|
"supported": true
|
|
},
|
|
"wallet": null
|
|
},
|
|
"created": 1583247322,
|
|
"customer": null,
|
|
"livemode": false,
|
|
"metadata": {
|
|
},
|
|
"type": "card"
|
|
}
|
|
http_version:
|
|
recorded_at: Tue, 03 Mar 2020 14:55:22 GMT
|
|
- request:
|
|
method: post
|
|
uri: https://api.stripe.com/v1/payment_intents
|
|
body:
|
|
encoding: UTF-8
|
|
string: payment_method=pm_1GIc9W2sOmf47Nz9xOphAQQe&amount=3000¤cy=usd&confirmation_method=manual&confirm=true&customer=cus_8E2ys9zDZgetWX
|
|
headers:
|
|
User-Agent:
|
|
- Stripe/v1 RubyBindings/5.1.1
|
|
Authorization:
|
|
- Bearer sk_test_testfaketestfaketestfake
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
X-Stripe-Client-Telemetry:
|
|
- '{"last_request_metrics":{"request_id":"req_dfmAuwdRAZxOVT","request_duration_ms":555}}'
|
|
Stripe-Version:
|
|
- '2019-08-14'
|
|
X-Stripe-Client-User-Agent:
|
|
- '{"bindings_version":"5.1.1","lang":"ruby","lang_version":"2.3.8 p459 (2018-10-18)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
|
version 5.5.5-arch1-1 (linux@archlinux) (gcc version 9.2.1 20200130 (Arch
|
|
Linux 9.2.1+20200130-2)) #1 SMP PREEMPT Thu, 20 Feb 2020 18:23:09 +0000","hostname":"Sylvain-desktop"}'
|
|
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:
|
|
- Tue, 03 Mar 2020 14:55:24 GMT
|
|
Content-Type:
|
|
- application/json
|
|
Content-Length:
|
|
- '4150'
|
|
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_JJcOaWgidBQ4OW
|
|
Stripe-Version:
|
|
- '2019-08-14'
|
|
Strict-Transport-Security:
|
|
- max-age=31556926; includeSubDomains; preload
|
|
body:
|
|
encoding: UTF-8
|
|
string: |
|
|
{
|
|
"id": "pi_1GIc9X2sOmf47Nz9KUeU06j5",
|
|
"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_1GIc9X2sOmf47Nz9sXXWeRP9",
|
|
"object": "charge",
|
|
"amount": 3000,
|
|
"amount_refunded": 0,
|
|
"application": null,
|
|
"application_fee": null,
|
|
"application_fee_amount": null,
|
|
"balance_transaction": "txn_1GIc9X2sOmf47Nz9nzhSgQkq",
|
|
"billing_details": {
|
|
"address": {
|
|
"city": null,
|
|
"country": null,
|
|
"line1": null,
|
|
"line2": null,
|
|
"postal_code": null,
|
|
"state": null
|
|
},
|
|
"email": null,
|
|
"name": null,
|
|
"phone": null
|
|
},
|
|
"captured": true,
|
|
"created": 1583247323,
|
|
"currency": "usd",
|
|
"customer": "cus_8E2ys9zDZgetWX",
|
|
"description": null,
|
|
"destination": null,
|
|
"dispute": null,
|
|
"disputed": false,
|
|
"failure_code": null,
|
|
"failure_message": null,
|
|
"fraud_details": {
|
|
},
|
|
"invoice": null,
|
|
"livemode": false,
|
|
"metadata": {
|
|
},
|
|
"on_behalf_of": null,
|
|
"order": null,
|
|
"outcome": {
|
|
"network_status": "approved_by_network",
|
|
"reason": null,
|
|
"risk_level": "normal",
|
|
"risk_score": 21,
|
|
"seller_message": "Payment complete.",
|
|
"type": "authorized"
|
|
},
|
|
"paid": true,
|
|
"payment_intent": "pi_1GIc9X2sOmf47Nz9KUeU06j5",
|
|
"payment_method": "pm_1GIc9W2sOmf47Nz9xOphAQQe",
|
|
"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": 2021,
|
|
"fingerprint": "o52jybR7bnmNn6AT",
|
|
"funding": "credit",
|
|
"installments": null,
|
|
"last4": "4242",
|
|
"network": "visa",
|
|
"three_d_secure": null,
|
|
"wallet": null
|
|
},
|
|
"type": "card"
|
|
},
|
|
"receipt_email": null,
|
|
"receipt_number": null,
|
|
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1GIc9X2sOmf47Nz9sXXWeRP9/rcpt_GqIlDf1OtiNDpCE3f6H8yzNNNJgiThf",
|
|
"refunded": false,
|
|
"refunds": {
|
|
"object": "list",
|
|
"data": [
|
|
|
|
],
|
|
"has_more": false,
|
|
"total_count": 0,
|
|
"url": "/v1/charges/ch_1GIc9X2sOmf47Nz9sXXWeRP9/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_1GIc9X2sOmf47Nz9KUeU06j5"
|
|
},
|
|
"client_secret": "pi_1GIc9X2sOmf47Nz9KUeU06j5_secret_Y2DWwqJ1cY5xEPb302KsejvF4",
|
|
"confirmation_method": "manual",
|
|
"created": 1583247323,
|
|
"currency": "usd",
|
|
"customer": "cus_8E2ys9zDZgetWX",
|
|
"description": null,
|
|
"invoice": null,
|
|
"last_payment_error": null,
|
|
"livemode": false,
|
|
"metadata": {
|
|
},
|
|
"next_action": null,
|
|
"on_behalf_of": null,
|
|
"payment_method": "pm_1GIc9W2sOmf47Nz9xOphAQQe",
|
|
"payment_method_options": {
|
|
"card": {
|
|
"installments": null,
|
|
"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": "succeeded",
|
|
"transfer_data": null,
|
|
"transfer_group": null
|
|
}
|
|
http_version:
|
|
recorded_at: Tue, 03 Mar 2020 14:55:24 GMT
|
|
- request:
|
|
method: post
|
|
uri: https://api.stripe.com/v1/payment_intents/pi_1GIc9X2sOmf47Nz9KUeU06j5
|
|
body:
|
|
encoding: UTF-8
|
|
string: description=Invoice+reference%3A+2003001%2FVL
|
|
headers:
|
|
User-Agent:
|
|
- Stripe/v1 RubyBindings/5.1.1
|
|
Authorization:
|
|
- Bearer sk_test_testfaketestfaketestfake
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
X-Stripe-Client-Telemetry:
|
|
- '{"last_request_metrics":{"request_id":"req_JJcOaWgidBQ4OW","request_duration_ms":1170}}'
|
|
Stripe-Version:
|
|
- '2019-08-14'
|
|
X-Stripe-Client-User-Agent:
|
|
- '{"bindings_version":"5.1.1","lang":"ruby","lang_version":"2.3.8 p459 (2018-10-18)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
|
version 5.5.5-arch1-1 (linux@archlinux) (gcc version 9.2.1 20200130 (Arch
|
|
Linux 9.2.1+20200130-2)) #1 SMP PREEMPT Thu, 20 Feb 2020 18:23:09 +0000","hostname":"Sylvain-desktop"}'
|
|
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:
|
|
- Tue, 03 Mar 2020 14:55:24 GMT
|
|
Content-Type:
|
|
- application/json
|
|
Content-Length:
|
|
- '4177'
|
|
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_NNCoWza9ondAIx
|
|
Stripe-Version:
|
|
- '2019-08-14'
|
|
Strict-Transport-Security:
|
|
- max-age=31556926; includeSubDomains; preload
|
|
body:
|
|
encoding: UTF-8
|
|
string: |
|
|
{
|
|
"id": "pi_1GIc9X2sOmf47Nz9KUeU06j5",
|
|
"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_1GIc9X2sOmf47Nz9sXXWeRP9",
|
|
"object": "charge",
|
|
"amount": 3000,
|
|
"amount_refunded": 0,
|
|
"application": null,
|
|
"application_fee": null,
|
|
"application_fee_amount": null,
|
|
"balance_transaction": "txn_1GIc9X2sOmf47Nz9nzhSgQkq",
|
|
"billing_details": {
|
|
"address": {
|
|
"city": null,
|
|
"country": null,
|
|
"line1": null,
|
|
"line2": null,
|
|
"postal_code": null,
|
|
"state": null
|
|
},
|
|
"email": null,
|
|
"name": null,
|
|
"phone": null
|
|
},
|
|
"captured": true,
|
|
"created": 1583247323,
|
|
"currency": "usd",
|
|
"customer": "cus_8E2ys9zDZgetWX",
|
|
"description": null,
|
|
"destination": null,
|
|
"dispute": null,
|
|
"disputed": false,
|
|
"failure_code": null,
|
|
"failure_message": null,
|
|
"fraud_details": {
|
|
},
|
|
"invoice": null,
|
|
"livemode": false,
|
|
"metadata": {
|
|
},
|
|
"on_behalf_of": null,
|
|
"order": null,
|
|
"outcome": {
|
|
"network_status": "approved_by_network",
|
|
"reason": null,
|
|
"risk_level": "normal",
|
|
"risk_score": 21,
|
|
"seller_message": "Payment complete.",
|
|
"type": "authorized"
|
|
},
|
|
"paid": true,
|
|
"payment_intent": "pi_1GIc9X2sOmf47Nz9KUeU06j5",
|
|
"payment_method": "pm_1GIc9W2sOmf47Nz9xOphAQQe",
|
|
"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": 2021,
|
|
"fingerprint": "o52jybR7bnmNn6AT",
|
|
"funding": "credit",
|
|
"installments": null,
|
|
"last4": "4242",
|
|
"network": "visa",
|
|
"three_d_secure": null,
|
|
"wallet": null
|
|
},
|
|
"type": "card"
|
|
},
|
|
"receipt_email": null,
|
|
"receipt_number": null,
|
|
"receipt_url": "https://pay.stripe.com/receipts/acct_103rE62sOmf47Nz9/ch_1GIc9X2sOmf47Nz9sXXWeRP9/rcpt_GqIlDf1OtiNDpCE3f6H8yzNNNJgiThf",
|
|
"refunded": false,
|
|
"refunds": {
|
|
"object": "list",
|
|
"data": [
|
|
|
|
],
|
|
"has_more": false,
|
|
"total_count": 0,
|
|
"url": "/v1/charges/ch_1GIc9X2sOmf47Nz9sXXWeRP9/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_1GIc9X2sOmf47Nz9KUeU06j5"
|
|
},
|
|
"client_secret": "pi_1GIc9X2sOmf47Nz9KUeU06j5_secret_Y2DWwqJ1cY5xEPb302KsejvF4",
|
|
"confirmation_method": "manual",
|
|
"created": 1583247323,
|
|
"currency": "usd",
|
|
"customer": "cus_8E2ys9zDZgetWX",
|
|
"description": "Invoice reference: 2003001/VL",
|
|
"invoice": null,
|
|
"last_payment_error": null,
|
|
"livemode": false,
|
|
"metadata": {
|
|
},
|
|
"next_action": null,
|
|
"on_behalf_of": null,
|
|
"payment_method": "pm_1GIc9W2sOmf47Nz9xOphAQQe",
|
|
"payment_method_options": {
|
|
"card": {
|
|
"installments": null,
|
|
"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": "succeeded",
|
|
"transfer_data": null,
|
|
"transfer_group": null
|
|
}
|
|
http_version:
|
|
recorded_at: Tue, 03 Mar 2020 14:55:24 GMT
|
|
recorded_with: VCR 3.0.1
|