mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
868 lines
27 KiB
YAML
868 lines
27 KiB
YAML
|
---
|
||
|
http_interactions:
|
||
|
- request:
|
||
|
method: post
|
||
|
uri: https://api.stripe.com/v1/setup_intents
|
||
|
body:
|
||
|
encoding: UTF-8
|
||
|
string: customer=cus_8Di1wjdVktv5kt
|
||
|
headers:
|
||
|
User-Agent:
|
||
|
- Stripe/v1 RubyBindings/5.29.0
|
||
|
Authorization:
|
||
|
- Bearer sk_test_testfaketestfaketestfake
|
||
|
Content-Type:
|
||
|
- application/x-www-form-urlencoded
|
||
|
X-Stripe-Client-Telemetry:
|
||
|
- '{"last_request_metrics":{"request_id":"req_inpFMpgIbPrF6S","request_duration_ms":494}}'
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-Client-User-Agent:
|
||
|
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
||
|
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
|
||
|
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +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:
|
||
|
- Fri, 11 Jun 2021 12:09:15 GMT
|
||
|
Content-Type:
|
||
|
- application/json
|
||
|
Content-Length:
|
||
|
- '727'
|
||
|
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_6M7lDp965gpF82
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-C-Cost:
|
||
|
- '0'
|
||
|
Strict-Transport-Security:
|
||
|
- max-age=31556926; includeSubDomains; preload
|
||
|
body:
|
||
|
encoding: UTF-8
|
||
|
string: |
|
||
|
{
|
||
|
"id": "seti_1J19Al2sOmf47Nz9beDznSBK",
|
||
|
"object": "setup_intent",
|
||
|
"application": null,
|
||
|
"cancellation_reason": null,
|
||
|
"client_secret": "seti_1J19Al2sOmf47Nz9beDznSBK_secret_JeS4dfGgFMQD3H6WynlWJei1Itpi0Na",
|
||
|
"created": 1623413355,
|
||
|
"customer": "cus_8Di1wjdVktv5kt",
|
||
|
"description": null,
|
||
|
"last_setup_error": null,
|
||
|
"latest_attempt": null,
|
||
|
"livemode": false,
|
||
|
"mandate": null,
|
||
|
"metadata": {
|
||
|
},
|
||
|
"next_action": null,
|
||
|
"on_behalf_of": null,
|
||
|
"payment_method": null,
|
||
|
"payment_method_options": {
|
||
|
"card": {
|
||
|
"request_three_d_secure": "automatic"
|
||
|
}
|
||
|
},
|
||
|
"payment_method_types": [
|
||
|
"card"
|
||
|
],
|
||
|
"single_use_mandate": null,
|
||
|
"status": "requires_payment_method",
|
||
|
"usage": "off_session"
|
||
|
}
|
||
|
recorded_at: Fri, 11 Jun 2021 12:09:15 GMT
|
||
|
- 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]=2022&card[cvc]=314
|
||
|
headers:
|
||
|
User-Agent:
|
||
|
- Stripe/v1 RubyBindings/5.29.0
|
||
|
Authorization:
|
||
|
- Bearer sk_test_testfaketestfaketestfake
|
||
|
Content-Type:
|
||
|
- application/x-www-form-urlencoded
|
||
|
X-Stripe-Client-Telemetry:
|
||
|
- '{"last_request_metrics":{"request_id":"req_6M7lDp965gpF82","request_duration_ms":409}}'
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-Client-User-Agent:
|
||
|
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
||
|
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
|
||
|
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +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:
|
||
|
- Fri, 11 Jun 2021 12:09:16 GMT
|
||
|
Content-Type:
|
||
|
- application/json
|
||
|
Content-Length:
|
||
|
- '934'
|
||
|
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_fZzQCNV669EXoP
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-C-Cost:
|
||
|
- '4'
|
||
|
Strict-Transport-Security:
|
||
|
- max-age=31556926; includeSubDomains; preload
|
||
|
body:
|
||
|
encoding: UTF-8
|
||
|
string: |
|
||
|
{
|
||
|
"id": "pm_1J19Am2sOmf47Nz9JfmnAIrS",
|
||
|
"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": 2022,
|
||
|
"fingerprint": "o52jybR7bnmNn6AT",
|
||
|
"funding": "credit",
|
||
|
"generated_from": null,
|
||
|
"last4": "4242",
|
||
|
"networks": {
|
||
|
"available": [
|
||
|
"visa"
|
||
|
],
|
||
|
"preferred": null
|
||
|
},
|
||
|
"three_d_secure_usage": {
|
||
|
"supported": true
|
||
|
},
|
||
|
"wallet": null
|
||
|
},
|
||
|
"created": 1623413356,
|
||
|
"customer": null,
|
||
|
"livemode": false,
|
||
|
"metadata": {
|
||
|
},
|
||
|
"type": "card"
|
||
|
}
|
||
|
recorded_at: Fri, 11 Jun 2021 12:09:16 GMT
|
||
|
- request:
|
||
|
method: post
|
||
|
uri: https://api.stripe.com/v1/setup_intents/seti_1J19Al2sOmf47Nz9beDznSBK/confirm
|
||
|
body:
|
||
|
encoding: UTF-8
|
||
|
string: payment_method=pm_1J19Am2sOmf47Nz9JfmnAIrS
|
||
|
headers:
|
||
|
User-Agent:
|
||
|
- Stripe/v1 RubyBindings/5.29.0
|
||
|
Authorization:
|
||
|
- Bearer sk_test_testfaketestfaketestfake
|
||
|
Content-Type:
|
||
|
- application/x-www-form-urlencoded
|
||
|
X-Stripe-Client-Telemetry:
|
||
|
- '{"last_request_metrics":{"request_id":"req_fZzQCNV669EXoP","request_duration_ms":615}}'
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-Client-User-Agent:
|
||
|
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
||
|
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
|
||
|
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +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:
|
||
|
- Fri, 11 Jun 2021 12:09:17 GMT
|
||
|
Content-Type:
|
||
|
- application/json
|
||
|
Content-Length:
|
||
|
- '767'
|
||
|
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_WemVZGuhC43fCy
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-C-Cost:
|
||
|
- '4'
|
||
|
Strict-Transport-Security:
|
||
|
- max-age=31556926; includeSubDomains; preload
|
||
|
body:
|
||
|
encoding: UTF-8
|
||
|
string: |
|
||
|
{
|
||
|
"id": "seti_1J19Al2sOmf47Nz9beDznSBK",
|
||
|
"object": "setup_intent",
|
||
|
"application": null,
|
||
|
"cancellation_reason": null,
|
||
|
"client_secret": "seti_1J19Al2sOmf47Nz9beDznSBK_secret_JeS4dfGgFMQD3H6WynlWJei1Itpi0Na",
|
||
|
"created": 1623413355,
|
||
|
"customer": "cus_8Di1wjdVktv5kt",
|
||
|
"description": null,
|
||
|
"last_setup_error": null,
|
||
|
"latest_attempt": "setatt_1J19Am2sOmf47Nz9sgVG2rWN",
|
||
|
"livemode": false,
|
||
|
"mandate": null,
|
||
|
"metadata": {
|
||
|
},
|
||
|
"next_action": null,
|
||
|
"on_behalf_of": null,
|
||
|
"payment_method": "pm_1J19Am2sOmf47Nz9JfmnAIrS",
|
||
|
"payment_method_options": {
|
||
|
"card": {
|
||
|
"request_three_d_secure": "automatic"
|
||
|
}
|
||
|
},
|
||
|
"payment_method_types": [
|
||
|
"card"
|
||
|
],
|
||
|
"single_use_mandate": null,
|
||
|
"status": "succeeded",
|
||
|
"usage": "off_session"
|
||
|
}
|
||
|
recorded_at: Fri, 11 Jun 2021 12:09:17 GMT
|
||
|
- request:
|
||
|
method: get
|
||
|
uri: https://api.stripe.com/v1/setup_intents/seti_1J19Al2sOmf47Nz9beDznSBK
|
||
|
body:
|
||
|
encoding: US-ASCII
|
||
|
string: ''
|
||
|
headers:
|
||
|
User-Agent:
|
||
|
- Stripe/v1 RubyBindings/5.29.0
|
||
|
Authorization:
|
||
|
- Bearer sk_test_testfaketestfaketestfake
|
||
|
Content-Type:
|
||
|
- application/x-www-form-urlencoded
|
||
|
X-Stripe-Client-Telemetry:
|
||
|
- '{"last_request_metrics":{"request_id":"req_WemVZGuhC43fCy","request_duration_ms":1147}}'
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-Client-User-Agent:
|
||
|
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
||
|
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
|
||
|
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +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:
|
||
|
- Fri, 11 Jun 2021 12:09:18 GMT
|
||
|
Content-Type:
|
||
|
- application/json
|
||
|
Content-Length:
|
||
|
- '767'
|
||
|
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_w6JI1oJhcSXQ8X
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-C-Cost:
|
||
|
- '0'
|
||
|
Strict-Transport-Security:
|
||
|
- max-age=31556926; includeSubDomains; preload
|
||
|
body:
|
||
|
encoding: UTF-8
|
||
|
string: |
|
||
|
{
|
||
|
"id": "seti_1J19Al2sOmf47Nz9beDznSBK",
|
||
|
"object": "setup_intent",
|
||
|
"application": null,
|
||
|
"cancellation_reason": null,
|
||
|
"client_secret": "seti_1J19Al2sOmf47Nz9beDznSBK_secret_JeS4dfGgFMQD3H6WynlWJei1Itpi0Na",
|
||
|
"created": 1623413355,
|
||
|
"customer": "cus_8Di1wjdVktv5kt",
|
||
|
"description": null,
|
||
|
"last_setup_error": null,
|
||
|
"latest_attempt": "setatt_1J19Am2sOmf47Nz9sgVG2rWN",
|
||
|
"livemode": false,
|
||
|
"mandate": null,
|
||
|
"metadata": {
|
||
|
},
|
||
|
"next_action": null,
|
||
|
"on_behalf_of": null,
|
||
|
"payment_method": "pm_1J19Am2sOmf47Nz9JfmnAIrS",
|
||
|
"payment_method_options": {
|
||
|
"card": {
|
||
|
"request_three_d_secure": "automatic"
|
||
|
}
|
||
|
},
|
||
|
"payment_method_types": [
|
||
|
"card"
|
||
|
],
|
||
|
"single_use_mandate": null,
|
||
|
"status": "succeeded",
|
||
|
"usage": "off_session"
|
||
|
}
|
||
|
recorded_at: Fri, 11 Jun 2021 12:09:18 GMT
|
||
|
- request:
|
||
|
method: get
|
||
|
uri: https://api.stripe.com/v1/setup_intents/seti_1J19Al2sOmf47Nz9beDznSBK
|
||
|
body:
|
||
|
encoding: US-ASCII
|
||
|
string: ''
|
||
|
headers:
|
||
|
User-Agent:
|
||
|
- Stripe/v1 RubyBindings/5.29.0
|
||
|
Authorization:
|
||
|
- Bearer sk_test_testfaketestfaketestfake
|
||
|
Content-Type:
|
||
|
- application/x-www-form-urlencoded
|
||
|
X-Stripe-Client-Telemetry:
|
||
|
- '{"last_request_metrics":{"request_id":"req_w6JI1oJhcSXQ8X","request_duration_ms":406}}'
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-Client-User-Agent:
|
||
|
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
||
|
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
|
||
|
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +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:
|
||
|
- Fri, 11 Jun 2021 12:09:18 GMT
|
||
|
Content-Type:
|
||
|
- application/json
|
||
|
Content-Length:
|
||
|
- '767'
|
||
|
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_jkI9KMhzvN1qkB
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-C-Cost:
|
||
|
- '0'
|
||
|
Strict-Transport-Security:
|
||
|
- max-age=31556926; includeSubDomains; preload
|
||
|
body:
|
||
|
encoding: UTF-8
|
||
|
string: |
|
||
|
{
|
||
|
"id": "seti_1J19Al2sOmf47Nz9beDznSBK",
|
||
|
"object": "setup_intent",
|
||
|
"application": null,
|
||
|
"cancellation_reason": null,
|
||
|
"client_secret": "seti_1J19Al2sOmf47Nz9beDznSBK_secret_JeS4dfGgFMQD3H6WynlWJei1Itpi0Na",
|
||
|
"created": 1623413355,
|
||
|
"customer": "cus_8Di1wjdVktv5kt",
|
||
|
"description": null,
|
||
|
"last_setup_error": null,
|
||
|
"latest_attempt": "setatt_1J19Am2sOmf47Nz9sgVG2rWN",
|
||
|
"livemode": false,
|
||
|
"mandate": null,
|
||
|
"metadata": {
|
||
|
},
|
||
|
"next_action": null,
|
||
|
"on_behalf_of": null,
|
||
|
"payment_method": "pm_1J19Am2sOmf47Nz9JfmnAIrS",
|
||
|
"payment_method_options": {
|
||
|
"card": {
|
||
|
"request_three_d_secure": "automatic"
|
||
|
}
|
||
|
},
|
||
|
"payment_method_types": [
|
||
|
"card"
|
||
|
],
|
||
|
"single_use_mandate": null,
|
||
|
"status": "succeeded",
|
||
|
"usage": "off_session"
|
||
|
}
|
||
|
recorded_at: Fri, 11 Jun 2021 12:09:18 GMT
|
||
|
- request:
|
||
|
method: post
|
||
|
uri: https://api.stripe.com/v1/prices
|
||
|
body:
|
||
|
encoding: UTF-8
|
||
|
string: unit_amount=9466¤cy=usd&product=prod_IZQAhb9nLu4jfN&recurring[interval]=month&recurring[interval_count]=1
|
||
|
headers:
|
||
|
User-Agent:
|
||
|
- Stripe/v1 RubyBindings/5.29.0
|
||
|
Authorization:
|
||
|
- Bearer sk_test_testfaketestfaketestfake
|
||
|
Content-Type:
|
||
|
- application/x-www-form-urlencoded
|
||
|
X-Stripe-Client-Telemetry:
|
||
|
- '{"last_request_metrics":{"request_id":"req_jkI9KMhzvN1qkB","request_duration_ms":366}}'
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-Client-User-Agent:
|
||
|
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
||
|
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
|
||
|
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +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:
|
||
|
- Fri, 11 Jun 2021 12:09:19 GMT
|
||
|
Content-Type:
|
||
|
- application/json
|
||
|
Content-Length:
|
||
|
- '574'
|
||
|
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_wEV0utkuydCzBS
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-C-Cost:
|
||
|
- '0'
|
||
|
Strict-Transport-Security:
|
||
|
- max-age=31556926; includeSubDomains; preload
|
||
|
body:
|
||
|
encoding: UTF-8
|
||
|
string: |
|
||
|
{
|
||
|
"id": "price_1J19Ao2sOmf47Nz9CKS2E04T",
|
||
|
"object": "price",
|
||
|
"active": true,
|
||
|
"billing_scheme": "per_unit",
|
||
|
"created": 1623413358,
|
||
|
"currency": "usd",
|
||
|
"livemode": false,
|
||
|
"lookup_key": null,
|
||
|
"metadata": {
|
||
|
},
|
||
|
"nickname": null,
|
||
|
"product": "prod_IZQAhb9nLu4jfN",
|
||
|
"recurring": {
|
||
|
"aggregate_usage": null,
|
||
|
"interval": "month",
|
||
|
"interval_count": 1,
|
||
|
"trial_period_days": null,
|
||
|
"usage_type": "licensed"
|
||
|
},
|
||
|
"tiers_mode": null,
|
||
|
"transform_quantity": null,
|
||
|
"type": "recurring",
|
||
|
"unit_amount": 9466,
|
||
|
"unit_amount_decimal": "9466"
|
||
|
}
|
||
|
recorded_at: Fri, 11 Jun 2021 12:09:19 GMT
|
||
|
- request:
|
||
|
method: post
|
||
|
uri: https://api.stripe.com/v1/prices
|
||
|
body:
|
||
|
encoding: UTF-8
|
||
|
string: unit_amount=8¤cy=usd&product=prod_IZQAhb9nLu4jfN&nickname=Price+adjustment+for+payment+schedule+3
|
||
|
headers:
|
||
|
User-Agent:
|
||
|
- Stripe/v1 RubyBindings/5.29.0
|
||
|
Authorization:
|
||
|
- Bearer sk_test_testfaketestfaketestfake
|
||
|
Content-Type:
|
||
|
- application/x-www-form-urlencoded
|
||
|
X-Stripe-Client-Telemetry:
|
||
|
- '{"last_request_metrics":{"request_id":"req_wEV0utkuydCzBS","request_duration_ms":427}}'
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-Client-User-Agent:
|
||
|
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
||
|
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
|
||
|
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +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:
|
||
|
- Fri, 11 Jun 2021 12:09:19 GMT
|
||
|
Content-Type:
|
||
|
- application/json
|
||
|
Content-Length:
|
||
|
- '464'
|
||
|
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_jFKCIQI2qbN32x
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-C-Cost:
|
||
|
- '0'
|
||
|
Strict-Transport-Security:
|
||
|
- max-age=31556926; includeSubDomains; preload
|
||
|
body:
|
||
|
encoding: UTF-8
|
||
|
string: |
|
||
|
{
|
||
|
"id": "price_1J19Ap2sOmf47Nz9XPnavXfk",
|
||
|
"object": "price",
|
||
|
"active": true,
|
||
|
"billing_scheme": "per_unit",
|
||
|
"created": 1623413359,
|
||
|
"currency": "usd",
|
||
|
"livemode": false,
|
||
|
"lookup_key": null,
|
||
|
"metadata": {
|
||
|
},
|
||
|
"nickname": "Price adjustment for payment schedule 3",
|
||
|
"product": "prod_IZQAhb9nLu4jfN",
|
||
|
"recurring": null,
|
||
|
"tiers_mode": null,
|
||
|
"transform_quantity": null,
|
||
|
"type": "one_time",
|
||
|
"unit_amount": 8,
|
||
|
"unit_amount_decimal": "8"
|
||
|
}
|
||
|
recorded_at: Fri, 11 Jun 2021 12:09:19 GMT
|
||
|
- request:
|
||
|
method: post
|
||
|
uri: https://api.stripe.com/v1/subscriptions
|
||
|
body:
|
||
|
encoding: UTF-8
|
||
|
string: customer=cus_8Di1wjdVktv5kt&cancel_at=1652530158&add_invoice_items[0][price]=price_1J19Ap2sOmf47Nz9XPnavXfk&items[0][price]=price_1J19Ao2sOmf47Nz9CKS2E04T&default_payment_method=pm_1J19Am2sOmf47Nz9JfmnAIrS
|
||
|
headers:
|
||
|
User-Agent:
|
||
|
- Stripe/v1 RubyBindings/5.29.0
|
||
|
Authorization:
|
||
|
- Bearer sk_test_testfaketestfaketestfake
|
||
|
Content-Type:
|
||
|
- application/x-www-form-urlencoded
|
||
|
X-Stripe-Client-Telemetry:
|
||
|
- '{"last_request_metrics":{"request_id":"req_jFKCIQI2qbN32x","request_duration_ms":373}}'
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-Client-User-Agent:
|
||
|
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.7 p197 (2021-04-05)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
||
|
version 5.12.9-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils)
|
||
|
2.36.1) #1 SMP PREEMPT Thu, 03 Jun 2021 11:36:13 +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:
|
||
|
- Fri, 11 Jun 2021 12:09:21 GMT
|
||
|
Content-Type:
|
||
|
- application/json
|
||
|
Content-Length:
|
||
|
- '3720'
|
||
|
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_594w2n9sMJ04sb
|
||
|
Stripe-Version:
|
||
|
- '2019-08-14'
|
||
|
X-Stripe-C-Cost:
|
||
|
- '9'
|
||
|
Strict-Transport-Security:
|
||
|
- max-age=31556926; includeSubDomains; preload
|
||
|
body:
|
||
|
encoding: UTF-8
|
||
|
string: |
|
||
|
{
|
||
|
"id": "sub_JeS4yyUKfhPlFm",
|
||
|
"object": "subscription",
|
||
|
"application_fee_percent": null,
|
||
|
"billing": "charge_automatically",
|
||
|
"billing_cycle_anchor": 1623413359,
|
||
|
"billing_thresholds": null,
|
||
|
"cancel_at": 1652530158,
|
||
|
"cancel_at_period_end": false,
|
||
|
"canceled_at": 1623413359,
|
||
|
"collection_method": "charge_automatically",
|
||
|
"created": 1623413359,
|
||
|
"current_period_end": 1626005359,
|
||
|
"current_period_start": 1623413359,
|
||
|
"customer": "cus_8Di1wjdVktv5kt",
|
||
|
"days_until_due": null,
|
||
|
"default_payment_method": "pm_1J19Am2sOmf47Nz9JfmnAIrS",
|
||
|
"default_source": null,
|
||
|
"default_tax_rates": [
|
||
|
|
||
|
],
|
||
|
"discount": null,
|
||
|
"ended_at": null,
|
||
|
"invoice_customer_balance_settings": {
|
||
|
"consume_applied_balance_on_void": true
|
||
|
},
|
||
|
"items": {
|
||
|
"object": "list",
|
||
|
"data": [
|
||
|
{
|
||
|
"id": "si_JeS44tuhbqzlrx",
|
||
|
"object": "subscription_item",
|
||
|
"billing_thresholds": null,
|
||
|
"created": 1623413360,
|
||
|
"metadata": {
|
||
|
},
|
||
|
"plan": {
|
||
|
"id": "price_1J19Ao2sOmf47Nz9CKS2E04T",
|
||
|
"object": "plan",
|
||
|
"active": true,
|
||
|
"aggregate_usage": null,
|
||
|
"amount": 9466,
|
||
|
"amount_decimal": "9466",
|
||
|
"billing_scheme": "per_unit",
|
||
|
"created": 1623413358,
|
||
|
"currency": "usd",
|
||
|
"interval": "month",
|
||
|
"interval_count": 1,
|
||
|
"livemode": false,
|
||
|
"metadata": {
|
||
|
},
|
||
|
"nickname": null,
|
||
|
"product": "prod_IZQAhb9nLu4jfN",
|
||
|
"tiers": null,
|
||
|
"tiers_mode": null,
|
||
|
"transform_usage": null,
|
||
|
"trial_period_days": null,
|
||
|
"usage_type": "licensed"
|
||
|
},
|
||
|
"price": {
|
||
|
"id": "price_1J19Ao2sOmf47Nz9CKS2E04T",
|
||
|
"object": "price",
|
||
|
"active": true,
|
||
|
"billing_scheme": "per_unit",
|
||
|
"created": 1623413358,
|
||
|
"currency": "usd",
|
||
|
"livemode": false,
|
||
|
"lookup_key": null,
|
||
|
"metadata": {
|
||
|
},
|
||
|
"nickname": null,
|
||
|
"product": "prod_IZQAhb9nLu4jfN",
|
||
|
"recurring": {
|
||
|
"aggregate_usage": null,
|
||
|
"interval": "month",
|
||
|
"interval_count": 1,
|
||
|
"trial_period_days": null,
|
||
|
"usage_type": "licensed"
|
||
|
},
|
||
|
"tiers_mode": null,
|
||
|
"transform_quantity": null,
|
||
|
"type": "recurring",
|
||
|
"unit_amount": 9466,
|
||
|
"unit_amount_decimal": "9466"
|
||
|
},
|
||
|
"quantity": 1,
|
||
|
"subscription": "sub_JeS4yyUKfhPlFm",
|
||
|
"tax_rates": [
|
||
|
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"has_more": false,
|
||
|
"total_count": 1,
|
||
|
"url": "/v1/subscription_items?subscription=sub_JeS4yyUKfhPlFm"
|
||
|
},
|
||
|
"latest_invoice": "in_1J19Ap2sOmf47Nz9ys8nxdYf",
|
||
|
"livemode": false,
|
||
|
"metadata": {
|
||
|
},
|
||
|
"next_pending_invoice_item_invoice": null,
|
||
|
"pause_collection": null,
|
||
|
"pending_invoice_item_interval": null,
|
||
|
"pending_setup_intent": null,
|
||
|
"pending_update": null,
|
||
|
"plan": {
|
||
|
"id": "price_1J19Ao2sOmf47Nz9CKS2E04T",
|
||
|
"object": "plan",
|
||
|
"active": true,
|
||
|
"aggregate_usage": null,
|
||
|
"amount": 9466,
|
||
|
"amount_decimal": "9466",
|
||
|
"billing_scheme": "per_unit",
|
||
|
"created": 1623413358,
|
||
|
"currency": "usd",
|
||
|
"interval": "month",
|
||
|
"interval_count": 1,
|
||
|
"livemode": false,
|
||
|
"metadata": {
|
||
|
},
|
||
|
"nickname": null,
|
||
|
"product": "prod_IZQAhb9nLu4jfN",
|
||
|
"tiers": null,
|
||
|
"tiers_mode": null,
|
||
|
"transform_usage": null,
|
||
|
"trial_period_days": null,
|
||
|
"usage_type": "licensed"
|
||
|
},
|
||
|
"quantity": 1,
|
||
|
"schedule": null,
|
||
|
"start": 1623413359,
|
||
|
"start_date": 1623413359,
|
||
|
"status": "active",
|
||
|
"tax_percent": null,
|
||
|
"transfer_data": null,
|
||
|
"trial_end": null,
|
||
|
"trial_start": null
|
||
|
}
|
||
|
recorded_at: Fri, 11 Jun 2021 12:09:21 GMT
|
||
|
recorded_with: VCR 6.0.0
|