Per review, create a Stripe account

It's better to avoid hard coded stripe entities
This commit is contained in:
Gaetan Craig-Riou
2024-02-19 10:34:15 +11:00
parent ef1d2fdb4d
commit 89236f4c2f
4 changed files with 812 additions and 185 deletions

View File

@@ -1,5 +1,210 @@
---
http_interactions:
- request:
method: post
uri: https://api.stripe.com/v1/accounts
body:
encoding: UTF-8
string: type=standard&country=AU&email=carrot.producer%40example.com
headers:
User-Agent:
- Stripe/v1 RubyBindings/10.8.0
Authorization:
- Bearer <HIDDEN-STRIPE_INSTANCE_SECRET_KEY>
Content-Type:
- application/x-www-form-urlencoded
Stripe-Version:
- '2023-10-16'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"10.8.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.15.0-92-generic (buildd@lcy02-amd64-002) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2)
9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon
Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}'
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:
- Sun, 18 Feb 2024 23:18:55 GMT
Content-Type:
- application/json
Content-Length:
- '3046'
Connection:
- keep-alive
Access-Control-Allow-Credentials:
- 'true'
Access-Control-Allow-Methods:
- GET,HEAD,PUT,PATCH,POST,DELETE
Access-Control-Allow-Origin:
- "*"
Access-Control-Expose-Headers:
- Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required,
X-Stripe-Privileged-Session-Required
Access-Control-Max-Age:
- '300'
Cache-Control:
- no-cache, no-store
Content-Security-Policy:
- report-uri https://q.stripe.com/csp-report?p=v1%2Faccounts; block-all-mixed-content;
default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none';
img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'
Idempotency-Key:
- a9283eb3-7b80-4b48-b83f-08c42cabd937
Original-Request:
- req_Wbr0VoksDJMRSz
Request-Id:
- req_Wbr0VoksDJMRSz
Stripe-Should-Retry:
- 'false'
Stripe-Version:
- '2023-10-16'
Vary:
- Origin
X-Stripe-Routing-Context-Priority-Tier:
- api-testmode
Strict-Transport-Security:
- max-age=63072000; includeSubDomains; preload
body:
encoding: UTF-8
string: |-
{
"id": "acct_1OlJdK3P50uNgD3L",
"object": "account",
"business_profile": {
"annual_revenue": null,
"estimated_worker_count": null,
"mcc": null,
"name": null,
"product_description": null,
"support_address": null,
"support_email": null,
"support_phone": null,
"support_url": null,
"url": null
},
"business_type": null,
"capabilities": {},
"charges_enabled": false,
"controller": {
"is_controller": true,
"type": "application"
},
"country": "AU",
"created": 1708298335,
"default_currency": "aud",
"details_submitted": false,
"email": "carrot.producer@example.com",
"external_accounts": {
"object": "list",
"data": [],
"has_more": false,
"total_count": 0,
"url": "/v1/accounts/acct_1OlJdK3P50uNgD3L/external_accounts"
},
"future_requirements": {
"alternatives": [],
"current_deadline": null,
"currently_due": [],
"disabled_reason": null,
"errors": [],
"eventually_due": [],
"past_due": [],
"pending_verification": []
},
"metadata": {},
"payouts_enabled": false,
"requirements": {
"alternatives": [],
"current_deadline": null,
"currently_due": [
"business_profile.product_description",
"business_profile.support_phone",
"business_profile.url",
"external_account",
"tos_acceptance.date",
"tos_acceptance.ip"
],
"disabled_reason": "requirements.past_due",
"errors": [],
"eventually_due": [
"business_profile.product_description",
"business_profile.support_phone",
"business_profile.url",
"external_account",
"tos_acceptance.date",
"tos_acceptance.ip"
],
"past_due": [
"external_account",
"tos_acceptance.date",
"tos_acceptance.ip"
],
"pending_verification": []
},
"settings": {
"bacs_debit_payments": {
"display_name": null,
"service_user_number": null
},
"branding": {
"icon": null,
"logo": null,
"primary_color": null,
"secondary_color": null
},
"card_issuing": {
"tos_acceptance": {
"date": null,
"ip": null
}
},
"card_payments": {
"decline_on": {
"avs_failure": false,
"cvc_failure": false
},
"statement_descriptor_prefix": null,
"statement_descriptor_prefix_kana": null,
"statement_descriptor_prefix_kanji": null
},
"dashboard": {
"display_name": null,
"timezone": "Etc/UTC"
},
"invoices": {
"default_account_tax_ids": null
},
"payments": {
"statement_descriptor": null,
"statement_descriptor_kana": null,
"statement_descriptor_kanji": null
},
"payouts": {
"debit_negative_balances": true,
"schedule": {
"delay_days": 2,
"interval": "daily"
},
"statement_descriptor": null
},
"sepa_debit_payments": {}
},
"tos_acceptance": {
"date": null,
"ip": null,
"user_agent": null
},
"type": "standard"
}
recorded_at: Sun, 18 Feb 2024 23:18:56 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
@@ -14,7 +219,7 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_PnWqcN06vWvMR9","request_duration_ms":411}}'
- '{"last_request_metrics":{"request_id":"req_Wbr0VoksDJMRSz","request_duration_ms":2220}}'
Stripe-Version:
- '2023-10-16'
X-Stripe-Client-User-Agent:
@@ -23,7 +228,7 @@ http_interactions:
9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon
Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}'
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJdK3P50uNgD3L
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@@ -36,7 +241,7 @@ http_interactions:
Server:
- nginx
Date:
- Wed, 14 Feb 2024 03:18:36 GMT
- Sun, 18 Feb 2024 23:18:57 GMT
Content-Type:
- application/json
Content-Length:
@@ -61,13 +266,13 @@ http_interactions:
default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none';
img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'
Idempotency-Key:
- 162c4776-cf5c-4796-a217-bb655e612276
- 38ea3dac-f935-4511-a906-057263310590
Original-Request:
- req_t5o3NvgtXE4esg
- req_e6hlbnspoZ8FRt
Request-Id:
- req_t5o3NvgtXE4esg
- req_e6hlbnspoZ8FRt
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJdK3P50uNgD3L
Stripe-Should-Retry:
- 'false'
Stripe-Version:
@@ -82,7 +287,7 @@ http_interactions:
encoding: UTF-8
string: |-
{
"id": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5",
"id": "pi_3OlJdM3P50uNgD3L1TTJHq6z",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
@@ -96,20 +301,20 @@ http_interactions:
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"client_secret": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5_secret_vRIuwF8JpnLz26yrZwfV6Dw8o",
"client_secret": "pi_3OlJdM3P50uNgD3L1TTJHq6z_secret_vYJ4jMHatj3bwtyafHxb2II4G",
"confirmation_method": "automatic",
"created": 1707880715,
"created": 1708298336,
"currency": "aud",
"customer": null,
"description": null,
"invoice": null,
"last_payment_error": null,
"latest_charge": "ch_3OjYzXQQeZbvfZRJ19NYrLHA",
"latest_charge": "ch_3OlJdM3P50uNgD3L1OIT6IVm",
"livemode": false,
"metadata": {},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1OjYzXQQeZbvfZRJYMx81X2A",
"payment_method": "pm_1OlJdM3P50uNgD3LTg9urTfT",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -134,10 +339,10 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Wed, 14 Feb 2024 03:18:37 GMT
recorded_at: Sun, 18 Feb 2024 23:18:57 GMT
- request:
method: get
uri: https://api.stripe.com/v1/payment_intents/pi_3OjYzXQQeZbvfZRJ1j1ruUY5
uri: https://api.stripe.com/v1/payment_intents/pi_3OlJdM3P50uNgD3L1TTJHq6z
body:
encoding: US-ASCII
string: ''
@@ -153,7 +358,7 @@ http_interactions:
X-Stripe-Client-User-Metadata:
- '{"ip":null}'
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJdK3P50uNgD3L
Connection:
- close
Accept-Encoding:
@@ -168,11 +373,11 @@ http_interactions:
Server:
- nginx
Date:
- Wed, 14 Feb 2024 03:18:37 GMT
- Sun, 18 Feb 2024 23:18:58 GMT
Content-Type:
- application/json
Content-Length:
- '5160'
- '5159'
Connection:
- close
Access-Control-Allow-Credentials:
@@ -194,9 +399,9 @@ http_interactions:
'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample';
style-src 'self'
Request-Id:
- req_LT0o6jALXIeEGV
- req_0XQkUeP9goSD62
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJdK3P50uNgD3L
Stripe-Version:
- '2020-08-27'
Vary:
@@ -209,7 +414,7 @@ http_interactions:
encoding: UTF-8
string: |-
{
"id": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5",
"id": "pi_3OlJdM3P50uNgD3L1TTJHq6z",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
@@ -227,7 +432,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_3OjYzXQQeZbvfZRJ19NYrLHA",
"id": "ch_3OlJdM3P50uNgD3L1OIT6IVm",
"object": "charge",
"amount": 1000,
"amount_captured": 1000,
@@ -235,7 +440,7 @@ http_interactions:
"application": "<HIDDEN-STRIPE_CLIENT_ID>",
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_3OjYzXQQeZbvfZRJ1GsCEqjS",
"balance_transaction": "txn_3OlJdM3P50uNgD3L1WGnM0ec",
"billing_details": {
"address": {
"city": null,
@@ -251,7 +456,7 @@ http_interactions:
},
"calculated_statement_descriptor": "OFNOFNOFN",
"captured": true,
"created": 1707880716,
"created": 1708298337,
"currency": "aud",
"customer": null,
"description": null,
@@ -271,13 +476,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 26,
"risk_score": 2,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5",
"payment_method": "pm_1OjYzXQQeZbvfZRJYMx81X2A",
"payment_intent": "pi_3OlJdM3P50uNgD3L1TTJHq6z",
"payment_method": "pm_1OlJdM3P50uNgD3LTg9urTfT",
"payment_method_details": {
"card": {
"amount_authorized": 1000,
@@ -320,14 +525,14 @@ http_interactions:
"radar_options": {},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2haOWxRUWVaYnZmWlJKKI3isK4GMgY_HCUfdyE6LBZd0oRsqmQJIXTqN-eOQDNIrEI0HnrxkpbbvqNdWZiAD7qGeAol3jjYdokB",
"receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2xKZEszUDUwdU5nRDNMKOKgyq4GMgbXXEkyYz46LBb4_CJ9OvCAcpFK5JRnLm875MtWjznz4uWvnIbYnPZpGAiDUb9GJYVEppee",
"refunded": false,
"refunds": {
"object": "list",
"data": [],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_3OjYzXQQeZbvfZRJ19NYrLHA/refunds"
"url": "/v1/charges/ch_3OlJdM3P50uNgD3L1OIT6IVm/refunds"
},
"review": null,
"shipping": null,
@@ -342,22 +547,22 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_3OjYzXQQeZbvfZRJ1j1ruUY5"
"url": "/v1/charges?payment_intent=pi_3OlJdM3P50uNgD3L1TTJHq6z"
},
"client_secret": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5_secret_vRIuwF8JpnLz26yrZwfV6Dw8o",
"client_secret": "pi_3OlJdM3P50uNgD3L1TTJHq6z_secret_vYJ4jMHatj3bwtyafHxb2II4G",
"confirmation_method": "automatic",
"created": 1707880715,
"created": 1708298336,
"currency": "aud",
"customer": null,
"description": null,
"invoice": null,
"last_payment_error": null,
"latest_charge": "ch_3OjYzXQQeZbvfZRJ19NYrLHA",
"latest_charge": "ch_3OlJdM3P50uNgD3L1OIT6IVm",
"livemode": false,
"metadata": {},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1OjYzXQQeZbvfZRJYMx81X2A",
"payment_method": "pm_1OlJdM3P50uNgD3LTg9urTfT",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -382,10 +587,10 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Wed, 14 Feb 2024 03:18:37 GMT
recorded_at: Sun, 18 Feb 2024 23:18:58 GMT
- request:
method: post
uri: https://api.stripe.com/v1/charges/ch_3OjYzXQQeZbvfZRJ19NYrLHA/refunds
uri: https://api.stripe.com/v1/charges/ch_3OlJdM3P50uNgD3L1OIT6IVm/refunds
body:
encoding: UTF-8
string: amount=1000&expand[0]=charge
@@ -403,7 +608,7 @@ http_interactions:
X-Stripe-Client-User-Metadata:
- '{"ip":null}'
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJdK3P50uNgD3L
Connection:
- close
Accept-Encoding:
@@ -418,11 +623,11 @@ http_interactions:
Server:
- nginx
Date:
- Wed, 14 Feb 2024 03:18:38 GMT
- Sun, 18 Feb 2024 23:18:59 GMT
Content-Type:
- application/json
Content-Length:
- '4536'
- '4535'
Connection:
- close
Access-Control-Allow-Credentials:
@@ -444,13 +649,13 @@ http_interactions:
'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample';
style-src 'self'
Idempotency-Key:
- e56daa83-ded4-4bcb-870d-92fffe95b1d3
- 1adc333b-f920-48aa-bc0d-e3b71af92255
Original-Request:
- req_xesaGuCPCy5q9O
- req_KKn5hjAhXnLhop
Request-Id:
- req_xesaGuCPCy5q9O
- req_KKn5hjAhXnLhop
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJdK3P50uNgD3L
Stripe-Should-Retry:
- 'false'
Stripe-Version:
@@ -465,12 +670,12 @@ http_interactions:
encoding: UTF-8
string: |-
{
"id": "re_3OjYzXQQeZbvfZRJ1mvEuIT9",
"id": "re_3OlJdM3P50uNgD3L15XH6tpe",
"object": "refund",
"amount": 1000,
"balance_transaction": "txn_3OjYzXQQeZbvfZRJ1Mrm6k4L",
"balance_transaction": "txn_3OlJdM3P50uNgD3L1uKIjwp5",
"charge": {
"id": "ch_3OjYzXQQeZbvfZRJ19NYrLHA",
"id": "ch_3OlJdM3P50uNgD3L1OIT6IVm",
"object": "charge",
"amount": 1000,
"amount_captured": 1000,
@@ -478,7 +683,7 @@ http_interactions:
"application": "<HIDDEN-STRIPE_CLIENT_ID>",
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_3OjYzXQQeZbvfZRJ1GsCEqjS",
"balance_transaction": "txn_3OlJdM3P50uNgD3L1WGnM0ec",
"billing_details": {
"address": {
"city": null,
@@ -494,7 +699,7 @@ http_interactions:
},
"calculated_statement_descriptor": "OFNOFNOFN",
"captured": true,
"created": 1707880716,
"created": 1708298337,
"currency": "aud",
"customer": null,
"description": null,
@@ -514,13 +719,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 26,
"risk_score": 2,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5",
"payment_method": "pm_1OjYzXQQeZbvfZRJYMx81X2A",
"payment_intent": "pi_3OlJdM3P50uNgD3L1TTJHq6z",
"payment_method": "pm_1OlJdM3P50uNgD3LTg9urTfT",
"payment_method_details": {
"card": {
"amount_authorized": 1000,
@@ -563,18 +768,18 @@ http_interactions:
"radar_options": {},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2haOWxRUWVaYnZmWlJKKI7isK4GMgaV5COlGVo6LBYjTJOdJa9CuJnMR5Eg_gBt7975GIO67Zbbfrct_HakXl5lNGalmw-bF_E4",
"receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2xKZEszUDUwdU5nRDNMKOOgyq4GMgZRQKCkX886LBY0QZ4Hm4Fpy1v-B0NQrJrOyBw_S4LSZiRKrUVBfGgxoP7wLS6zCudbkSFK",
"refunded": true,
"refunds": {
"object": "list",
"data": [
{
"id": "re_3OjYzXQQeZbvfZRJ1mvEuIT9",
"id": "re_3OlJdM3P50uNgD3L15XH6tpe",
"object": "refund",
"amount": 1000,
"balance_transaction": "txn_3OjYzXQQeZbvfZRJ1Mrm6k4L",
"charge": "ch_3OjYzXQQeZbvfZRJ19NYrLHA",
"created": 1707880718,
"balance_transaction": "txn_3OlJdM3P50uNgD3L1uKIjwp5",
"charge": "ch_3OlJdM3P50uNgD3L1OIT6IVm",
"created": 1708298339,
"currency": "aud",
"destination_details": {
"card": {
@@ -585,7 +790,7 @@ http_interactions:
"type": "card"
},
"metadata": {},
"payment_intent": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5",
"payment_intent": "pi_3OlJdM3P50uNgD3L1TTJHq6z",
"reason": null,
"receipt_number": null,
"source_transfer_reversal": null,
@@ -595,7 +800,7 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges/ch_3OjYzXQQeZbvfZRJ19NYrLHA/refunds"
"url": "/v1/charges/ch_3OlJdM3P50uNgD3L1OIT6IVm/refunds"
},
"review": null,
"shipping": null,
@@ -607,7 +812,7 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
},
"created": 1707880718,
"created": 1708298339,
"currency": "aud",
"destination_details": {
"card": {
@@ -618,12 +823,12 @@ http_interactions:
"type": "card"
},
"metadata": {},
"payment_intent": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5",
"payment_intent": "pi_3OlJdM3P50uNgD3L1TTJHq6z",
"reason": null,
"receipt_number": null,
"source_transfer_reversal": null,
"status": "succeeded",
"transfer_reversal": null
}
recorded_at: Wed, 14 Feb 2024 03:18:39 GMT
recorded_at: Sun, 18 Feb 2024 23:19:00 GMT
recorded_with: VCR 6.2.0

View File

@@ -1,5 +1,212 @@
---
http_interactions:
- request:
method: post
uri: https://api.stripe.com/v1/accounts
body:
encoding: UTF-8
string: type=standard&country=AU&email=carrot.producer%40example.com
headers:
User-Agent:
- Stripe/v1 RubyBindings/10.8.0
Authorization:
- Bearer <HIDDEN-STRIPE_INSTANCE_SECRET_KEY>
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_RQ4tnyZMxaTrfg","request_duration_ms":0}}'
Stripe-Version:
- '2023-10-16'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"10.8.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.15.0-92-generic (buildd@lcy02-amd64-002) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2)
9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon
Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}'
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:
- Sun, 18 Feb 2024 23:31:52 GMT
Content-Type:
- application/json
Content-Length:
- '3046'
Connection:
- keep-alive
Access-Control-Allow-Credentials:
- 'true'
Access-Control-Allow-Methods:
- GET,HEAD,PUT,PATCH,POST,DELETE
Access-Control-Allow-Origin:
- "*"
Access-Control-Expose-Headers:
- Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required,
X-Stripe-Privileged-Session-Required
Access-Control-Max-Age:
- '300'
Cache-Control:
- no-cache, no-store
Content-Security-Policy:
- report-uri https://q.stripe.com/csp-report?p=v1%2Faccounts; block-all-mixed-content;
default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none';
img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'
Idempotency-Key:
- 2ed389f6-f571-412f-8164-91dd63633bab
Original-Request:
- req_meqXmqkS2joigR
Request-Id:
- req_meqXmqkS2joigR
Stripe-Should-Retry:
- 'false'
Stripe-Version:
- '2023-10-16'
Vary:
- Origin
X-Stripe-Routing-Context-Priority-Tier:
- api-testmode
Strict-Transport-Security:
- max-age=63072000; includeSubDomains; preload
body:
encoding: UTF-8
string: |-
{
"id": "acct_1OlJpq4IDOolHj4A",
"object": "account",
"business_profile": {
"annual_revenue": null,
"estimated_worker_count": null,
"mcc": null,
"name": null,
"product_description": null,
"support_address": null,
"support_email": null,
"support_phone": null,
"support_url": null,
"url": null
},
"business_type": null,
"capabilities": {},
"charges_enabled": false,
"controller": {
"is_controller": true,
"type": "application"
},
"country": "AU",
"created": 1708299111,
"default_currency": "aud",
"details_submitted": false,
"email": "carrot.producer@example.com",
"external_accounts": {
"object": "list",
"data": [],
"has_more": false,
"total_count": 0,
"url": "/v1/accounts/acct_1OlJpq4IDOolHj4A/external_accounts"
},
"future_requirements": {
"alternatives": [],
"current_deadline": null,
"currently_due": [],
"disabled_reason": null,
"errors": [],
"eventually_due": [],
"past_due": [],
"pending_verification": []
},
"metadata": {},
"payouts_enabled": false,
"requirements": {
"alternatives": [],
"current_deadline": null,
"currently_due": [
"business_profile.product_description",
"business_profile.support_phone",
"business_profile.url",
"external_account",
"tos_acceptance.date",
"tos_acceptance.ip"
],
"disabled_reason": "requirements.past_due",
"errors": [],
"eventually_due": [
"business_profile.product_description",
"business_profile.support_phone",
"business_profile.url",
"external_account",
"tos_acceptance.date",
"tos_acceptance.ip"
],
"past_due": [
"external_account",
"tos_acceptance.date",
"tos_acceptance.ip"
],
"pending_verification": []
},
"settings": {
"bacs_debit_payments": {
"display_name": null,
"service_user_number": null
},
"branding": {
"icon": null,
"logo": null,
"primary_color": null,
"secondary_color": null
},
"card_issuing": {
"tos_acceptance": {
"date": null,
"ip": null
}
},
"card_payments": {
"decline_on": {
"avs_failure": false,
"cvc_failure": false
},
"statement_descriptor_prefix": null,
"statement_descriptor_prefix_kana": null,
"statement_descriptor_prefix_kanji": null
},
"dashboard": {
"display_name": null,
"timezone": "Etc/UTC"
},
"invoices": {
"default_account_tax_ids": null
},
"payments": {
"statement_descriptor": null,
"statement_descriptor_kana": null,
"statement_descriptor_kanji": null
},
"payouts": {
"debit_negative_balances": true,
"schedule": {
"delay_days": 2,
"interval": "daily"
},
"statement_descriptor": null
},
"sepa_debit_payments": {}
},
"tos_acceptance": {
"date": null,
"ip": null,
"user_agent": null
},
"type": "standard"
}
recorded_at: Sun, 18 Feb 2024 23:31:52 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
@@ -14,7 +221,7 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_RQ4tnyZMxaTrfg","request_duration_ms":1}}'
- '{"last_request_metrics":{"request_id":"req_meqXmqkS2joigR","request_duration_ms":2100}}'
Stripe-Version:
- '2023-10-16'
X-Stripe-Client-User-Agent:
@@ -23,7 +230,7 @@ http_interactions:
9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon
Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}'
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJpq4IDOolHj4A
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@@ -36,7 +243,7 @@ http_interactions:
Server:
- nginx
Date:
- Wed, 14 Feb 2024 03:18:29 GMT
- Sun, 18 Feb 2024 23:31:53 GMT
Content-Type:
- application/json
Content-Length:
@@ -61,13 +268,13 @@ http_interactions:
default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none';
img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'
Idempotency-Key:
- e865bd69-4374-4e2e-9542-96af5f6daab7
- faeaef1a-6ba5-40e5-be52-848b398c8695
Original-Request:
- req_SJe2N6YBjv0snw
- req_MngqpVVLXd1sJL
Request-Id:
- req_SJe2N6YBjv0snw
- req_MngqpVVLXd1sJL
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJpq4IDOolHj4A
Stripe-Should-Retry:
- 'false'
Stripe-Version:
@@ -82,7 +289,7 @@ http_interactions:
encoding: UTF-8
string: |-
{
"id": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt",
"id": "pi_3OlJps4IDOolHj4A0FSKbxMR",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
@@ -96,20 +303,20 @@ http_interactions:
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"client_secret": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt_secret_DDNSlzw1M5FiivpZsr8w1C9Pq",
"client_secret": "pi_3OlJps4IDOolHj4A0FSKbxMR_secret_j9TxEMm87Qo3bbIs9UEPtVGTK",
"confirmation_method": "automatic",
"created": 1707880708,
"created": 1708299112,
"currency": "aud",
"customer": null,
"description": null,
"invoice": null,
"last_payment_error": null,
"latest_charge": "ch_3OjYzQQQeZbvfZRJ1agdI8ZG",
"latest_charge": "ch_3OlJps4IDOolHj4A0xc8SBvy",
"livemode": false,
"metadata": {},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1OjYzQQQeZbvfZRJevczQ3ja",
"payment_method": "pm_1OlJps4IDOolHj4AJIs76ygW",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -134,7 +341,7 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Wed, 14 Feb 2024 03:18:29 GMT
recorded_at: Sun, 18 Feb 2024 23:31:53 GMT
- request:
method: get
uri: https://api.stripe.com/v1/payment_methods/pm_card_mastercard
@@ -149,7 +356,7 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_SJe2N6YBjv0snw","request_duration_ms":1697}}'
- '{"last_request_metrics":{"request_id":"req_MngqpVVLXd1sJL","request_duration_ms":1423}}'
Stripe-Version:
- '2023-10-16'
X-Stripe-Client-User-Agent:
@@ -169,11 +376,11 @@ http_interactions:
Server:
- nginx
Date:
- Wed, 14 Feb 2024 03:18:30 GMT
- Sun, 18 Feb 2024 23:31:54 GMT
Content-Type:
- application/json
Content-Length:
- '942'
- '977'
Connection:
- keep-alive
Access-Control-Allow-Credentials:
@@ -195,7 +402,7 @@ http_interactions:
'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample';
style-src 'self'
Request-Id:
- req_5rWKkeAfNF1e2K
- req_npRtP9yodXxNC9
Stripe-Version:
- '2023-10-16'
Vary:
@@ -208,7 +415,7 @@ http_interactions:
encoding: UTF-8
string: |-
{
"id": "pm_1OjYzSKuuB1fWySn6gTcoyG9",
"id": "pm_1OlJpuKuuB1fWySnkErwTuoc",
"object": "payment_method",
"billing_details": {
"address": {
@@ -231,6 +438,7 @@ http_interactions:
"cvc_check": "unchecked"
},
"country": "US",
"display_brand": "mastercard",
"exp_month": 2,
"exp_year": 2025,
"fingerprint": "BL35fEFVcTTS5wpE",
@@ -248,16 +456,16 @@ http_interactions:
},
"wallet": null
},
"created": 1707880710,
"created": 1708299114,
"customer": null,
"livemode": false,
"metadata": {},
"type": "card"
}
recorded_at: Wed, 14 Feb 2024 03:18:30 GMT
recorded_at: Sun, 18 Feb 2024 23:31:55 GMT
- request:
method: get
uri: https://api.stripe.com/v1/payment_intents/pi_3OjYzQQQeZbvfZRJ1ZfpFZtt
uri: https://api.stripe.com/v1/payment_intents/pi_3OlJps4IDOolHj4A0FSKbxMR
body:
encoding: US-ASCII
string: ''
@@ -269,7 +477,7 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_5rWKkeAfNF1e2K","request_duration_ms":454}}'
- '{"last_request_metrics":{"request_id":"req_npRtP9yodXxNC9","request_duration_ms":560}}'
Stripe-Version:
- '2023-10-16'
X-Stripe-Client-User-Agent:
@@ -278,7 +486,7 @@ http_interactions:
9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon
Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}'
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJpq4IDOolHj4A
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@@ -291,7 +499,7 @@ http_interactions:
Server:
- nginx
Date:
- Wed, 14 Feb 2024 03:18:30 GMT
- Sun, 18 Feb 2024 23:31:55 GMT
Content-Type:
- application/json
Content-Length:
@@ -317,9 +525,9 @@ http_interactions:
'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample';
style-src 'self'
Request-Id:
- req_wxI46rAQyl4SSe
- req_v39bGC0NS2ATEx
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJpq4IDOolHj4A
Stripe-Version:
- '2023-10-16'
Vary:
@@ -332,7 +540,7 @@ http_interactions:
encoding: UTF-8
string: |-
{
"id": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt",
"id": "pi_3OlJps4IDOolHj4A0FSKbxMR",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
@@ -346,20 +554,20 @@ http_interactions:
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"client_secret": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt_secret_DDNSlzw1M5FiivpZsr8w1C9Pq",
"client_secret": "pi_3OlJps4IDOolHj4A0FSKbxMR_secret_j9TxEMm87Qo3bbIs9UEPtVGTK",
"confirmation_method": "automatic",
"created": 1707880708,
"created": 1708299112,
"currency": "aud",
"customer": null,
"description": null,
"invoice": null,
"last_payment_error": null,
"latest_charge": "ch_3OjYzQQQeZbvfZRJ1agdI8ZG",
"latest_charge": "ch_3OlJps4IDOolHj4A0xc8SBvy",
"livemode": false,
"metadata": {},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1OjYzQQQeZbvfZRJevczQ3ja",
"payment_method": "pm_1OlJps4IDOolHj4AJIs76ygW",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -384,10 +592,10 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Wed, 14 Feb 2024 03:18:30 GMT
recorded_at: Sun, 18 Feb 2024 23:31:55 GMT
- request:
method: get
uri: https://api.stripe.com/v1/payment_intents/pi_3OjYzQQQeZbvfZRJ1ZfpFZtt
uri: https://api.stripe.com/v1/payment_intents/pi_3OlJps4IDOolHj4A0FSKbxMR
body:
encoding: US-ASCII
string: ''
@@ -403,7 +611,7 @@ http_interactions:
X-Stripe-Client-User-Metadata:
- '{"ip":null}'
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJpq4IDOolHj4A
Connection:
- close
Accept-Encoding:
@@ -418,7 +626,7 @@ http_interactions:
Server:
- nginx
Date:
- Wed, 14 Feb 2024 03:18:31 GMT
- Sun, 18 Feb 2024 23:31:56 GMT
Content-Type:
- application/json
Content-Length:
@@ -444,9 +652,9 @@ http_interactions:
'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample';
style-src 'self'
Request-Id:
- req_8eT2GT3KhocGtE
- req_BpoOBuAdbqdFxT
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJpq4IDOolHj4A
Stripe-Version:
- '2020-08-27'
Vary:
@@ -459,7 +667,7 @@ http_interactions:
encoding: UTF-8
string: |-
{
"id": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt",
"id": "pi_3OlJps4IDOolHj4A0FSKbxMR",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
@@ -477,7 +685,7 @@ http_interactions:
"object": "list",
"data": [
{
"id": "ch_3OjYzQQQeZbvfZRJ1agdI8ZG",
"id": "ch_3OlJps4IDOolHj4A0xc8SBvy",
"object": "charge",
"amount": 1000,
"amount_captured": 1000,
@@ -485,7 +693,7 @@ http_interactions:
"application": "<HIDDEN-STRIPE_CLIENT_ID>",
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_3OjYzQQQeZbvfZRJ1rzq7WJf",
"balance_transaction": "txn_3OlJps4IDOolHj4A0be0gc2M",
"billing_details": {
"address": {
"city": null,
@@ -501,7 +709,7 @@ http_interactions:
},
"calculated_statement_descriptor": "OFNOFNOFN",
"captured": true,
"created": 1707880708,
"created": 1708299113,
"currency": "aud",
"customer": null,
"description": null,
@@ -521,13 +729,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 12,
"risk_score": 15,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt",
"payment_method": "pm_1OjYzQQQeZbvfZRJevczQ3ja",
"payment_intent": "pi_3OlJps4IDOolHj4A0FSKbxMR",
"payment_method": "pm_1OlJps4IDOolHj4AJIs76ygW",
"payment_method_details": {
"card": {
"amount_authorized": 1000,
@@ -570,14 +778,14 @@ http_interactions:
"radar_options": {},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2haOWxRUWVaYnZmWlJKKIfisK4GMgb5-TOPrLE6LBb_wjrOeEWzijpNMNdyZOt4LrIYtnRo4ZjRMaX-NqxyTdMnnWcQDt7-EAlo",
"receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2xKcHE0SURPb2xIajRBKOymyq4GMgaCH-hx8Xs6LBZk7rUcrlcl82luDEKcN3jln7XbThp1gFFoook-2b4wWsQ3bajF9tLklKpL",
"refunded": false,
"refunds": {
"object": "list",
"data": [],
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_3OjYzQQQeZbvfZRJ1agdI8ZG/refunds"
"url": "/v1/charges/ch_3OlJps4IDOolHj4A0xc8SBvy/refunds"
},
"review": null,
"shipping": null,
@@ -592,22 +800,22 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges?payment_intent=pi_3OjYzQQQeZbvfZRJ1ZfpFZtt"
"url": "/v1/charges?payment_intent=pi_3OlJps4IDOolHj4A0FSKbxMR"
},
"client_secret": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt_secret_DDNSlzw1M5FiivpZsr8w1C9Pq",
"client_secret": "pi_3OlJps4IDOolHj4A0FSKbxMR_secret_j9TxEMm87Qo3bbIs9UEPtVGTK",
"confirmation_method": "automatic",
"created": 1707880708,
"created": 1708299112,
"currency": "aud",
"customer": null,
"description": null,
"invoice": null,
"last_payment_error": null,
"latest_charge": "ch_3OjYzQQQeZbvfZRJ1agdI8ZG",
"latest_charge": "ch_3OlJps4IDOolHj4A0xc8SBvy",
"livemode": false,
"metadata": {},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1OjYzQQQeZbvfZRJevczQ3ja",
"payment_method": "pm_1OlJps4IDOolHj4AJIs76ygW",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -632,10 +840,10 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Wed, 14 Feb 2024 03:18:31 GMT
recorded_at: Sun, 18 Feb 2024 23:31:56 GMT
- request:
method: post
uri: https://api.stripe.com/v1/charges/ch_3OjYzQQQeZbvfZRJ1agdI8ZG/refunds
uri: https://api.stripe.com/v1/charges/ch_3OlJps4IDOolHj4A0xc8SBvy/refunds
body:
encoding: UTF-8
string: amount=1000&expand[0]=charge
@@ -653,7 +861,7 @@ http_interactions:
X-Stripe-Client-User-Metadata:
- '{"ip":null}'
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJpq4IDOolHj4A
Connection:
- close
Accept-Encoding:
@@ -668,7 +876,7 @@ http_interactions:
Server:
- nginx
Date:
- Wed, 14 Feb 2024 03:18:32 GMT
- Sun, 18 Feb 2024 23:31:57 GMT
Content-Type:
- application/json
Content-Length:
@@ -694,13 +902,13 @@ http_interactions:
'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample';
style-src 'self'
Idempotency-Key:
- c5612d0a-b27b-4611-8571-df184dfb4883
- 14e5eaed-eb35-4530-bd97-b10e0b6485e9
Original-Request:
- req_GSLFwegws0fu5O
- req_ZrY5fViOUd9zj5
Request-Id:
- req_GSLFwegws0fu5O
- req_ZrY5fViOUd9zj5
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJpq4IDOolHj4A
Stripe-Should-Retry:
- 'false'
Stripe-Version:
@@ -715,12 +923,12 @@ http_interactions:
encoding: UTF-8
string: |-
{
"id": "re_3OjYzQQQeZbvfZRJ1XLkiMNb",
"id": "re_3OlJps4IDOolHj4A0fuLJjYP",
"object": "refund",
"amount": 1000,
"balance_transaction": "txn_3OjYzQQQeZbvfZRJ1END2EXD",
"balance_transaction": "txn_3OlJps4IDOolHj4A0uopfEv0",
"charge": {
"id": "ch_3OjYzQQQeZbvfZRJ1agdI8ZG",
"id": "ch_3OlJps4IDOolHj4A0xc8SBvy",
"object": "charge",
"amount": 1000,
"amount_captured": 1000,
@@ -728,7 +936,7 @@ http_interactions:
"application": "<HIDDEN-STRIPE_CLIENT_ID>",
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_3OjYzQQQeZbvfZRJ1rzq7WJf",
"balance_transaction": "txn_3OlJps4IDOolHj4A0be0gc2M",
"billing_details": {
"address": {
"city": null,
@@ -744,7 +952,7 @@ http_interactions:
},
"calculated_statement_descriptor": "OFNOFNOFN",
"captured": true,
"created": 1707880708,
"created": 1708299113,
"currency": "aud",
"customer": null,
"description": null,
@@ -764,13 +972,13 @@ http_interactions:
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 12,
"risk_score": 15,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt",
"payment_method": "pm_1OjYzQQQeZbvfZRJevczQ3ja",
"payment_intent": "pi_3OlJps4IDOolHj4A0FSKbxMR",
"payment_method": "pm_1OlJps4IDOolHj4AJIs76ygW",
"payment_method_details": {
"card": {
"amount_authorized": 1000,
@@ -813,18 +1021,18 @@ http_interactions:
"radar_options": {},
"receipt_email": null,
"receipt_number": null,
"receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2haOWxRUWVaYnZmWlJKKIjisK4GMgZypb2pB6g6LBbF0B7_4nXvwqexHymit0cH1Fo3Kia6S2-A33YZ7GK8vHCldPf3XtBchtVJ",
"receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2xKcHE0SURPb2xIajRBKO2myq4GMgbWCpqeR486LBbcEhBtNPuCryM5xJKKFpmwBkERo7JjAc7onU_q6xbxOVm8exXEF1tcb9r0",
"refunded": true,
"refunds": {
"object": "list",
"data": [
{
"id": "re_3OjYzQQQeZbvfZRJ1XLkiMNb",
"id": "re_3OlJps4IDOolHj4A0fuLJjYP",
"object": "refund",
"amount": 1000,
"balance_transaction": "txn_3OjYzQQQeZbvfZRJ1END2EXD",
"charge": "ch_3OjYzQQQeZbvfZRJ1agdI8ZG",
"created": 1707880712,
"balance_transaction": "txn_3OlJps4IDOolHj4A0uopfEv0",
"charge": "ch_3OlJps4IDOolHj4A0xc8SBvy",
"created": 1708299116,
"currency": "aud",
"destination_details": {
"card": {
@@ -835,7 +1043,7 @@ http_interactions:
"type": "card"
},
"metadata": {},
"payment_intent": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt",
"payment_intent": "pi_3OlJps4IDOolHj4A0FSKbxMR",
"reason": null,
"receipt_number": null,
"source_transfer_reversal": null,
@@ -845,7 +1053,7 @@ http_interactions:
],
"has_more": false,
"total_count": 1,
"url": "/v1/charges/ch_3OjYzQQQeZbvfZRJ1agdI8ZG/refunds"
"url": "/v1/charges/ch_3OlJps4IDOolHj4A0xc8SBvy/refunds"
},
"review": null,
"shipping": null,
@@ -857,7 +1065,7 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
},
"created": 1707880712,
"created": 1708299116,
"currency": "aud",
"destination_details": {
"card": {
@@ -868,12 +1076,12 @@ http_interactions:
"type": "card"
},
"metadata": {},
"payment_intent": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt",
"payment_intent": "pi_3OlJps4IDOolHj4A0FSKbxMR",
"reason": null,
"receipt_number": null,
"source_transfer_reversal": null,
"status": "succeeded",
"transfer_reversal": null
}
recorded_at: Wed, 14 Feb 2024 03:18:32 GMT
recorded_at: Sun, 18 Feb 2024 23:31:57 GMT
recorded_with: VCR 6.2.0

View File

@@ -1,5 +1,212 @@
---
http_interactions:
- request:
method: post
uri: https://api.stripe.com/v1/accounts
body:
encoding: UTF-8
string: type=standard&country=AU&email=carrot.producer%40example.com
headers:
User-Agent:
- Stripe/v1 RubyBindings/10.8.0
Authorization:
- Bearer <HIDDEN-STRIPE_INSTANCE_SECRET_KEY>
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_v39bGC0NS2ATEx","request_duration_ms":499}}'
Stripe-Version:
- '2023-10-16'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"10.8.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 5.15.0-92-generic (buildd@lcy02-amd64-002) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2)
9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon
Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}'
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:
- Sun, 18 Feb 2024 23:31:59 GMT
Content-Type:
- application/json
Content-Length:
- '3046'
Connection:
- keep-alive
Access-Control-Allow-Credentials:
- 'true'
Access-Control-Allow-Methods:
- GET,HEAD,PUT,PATCH,POST,DELETE
Access-Control-Allow-Origin:
- "*"
Access-Control-Expose-Headers:
- Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required,
X-Stripe-Privileged-Session-Required
Access-Control-Max-Age:
- '300'
Cache-Control:
- no-cache, no-store
Content-Security-Policy:
- report-uri https://q.stripe.com/csp-report?p=v1%2Faccounts; block-all-mixed-content;
default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none';
img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'
Idempotency-Key:
- 8f008bd6-9ce8-428b-9327-a5b768f25be2
Original-Request:
- req_gHdtWKWo8Ywyim
Request-Id:
- req_gHdtWKWo8Ywyim
Stripe-Should-Retry:
- 'false'
Stripe-Version:
- '2023-10-16'
Vary:
- Origin
X-Stripe-Routing-Context-Priority-Tier:
- api-testmode
Strict-Transport-Security:
- max-age=63072000; includeSubDomains; preload
body:
encoding: UTF-8
string: |-
{
"id": "acct_1OlJpx4FpDs6HNTb",
"object": "account",
"business_profile": {
"annual_revenue": null,
"estimated_worker_count": null,
"mcc": null,
"name": null,
"product_description": null,
"support_address": null,
"support_email": null,
"support_phone": null,
"support_url": null,
"url": null
},
"business_type": null,
"capabilities": {},
"charges_enabled": false,
"controller": {
"is_controller": true,
"type": "application"
},
"country": "AU",
"created": 1708299118,
"default_currency": "aud",
"details_submitted": false,
"email": "carrot.producer@example.com",
"external_accounts": {
"object": "list",
"data": [],
"has_more": false,
"total_count": 0,
"url": "/v1/accounts/acct_1OlJpx4FpDs6HNTb/external_accounts"
},
"future_requirements": {
"alternatives": [],
"current_deadline": null,
"currently_due": [],
"disabled_reason": null,
"errors": [],
"eventually_due": [],
"past_due": [],
"pending_verification": []
},
"metadata": {},
"payouts_enabled": false,
"requirements": {
"alternatives": [],
"current_deadline": null,
"currently_due": [
"business_profile.product_description",
"business_profile.support_phone",
"business_profile.url",
"external_account",
"tos_acceptance.date",
"tos_acceptance.ip"
],
"disabled_reason": "requirements.past_due",
"errors": [],
"eventually_due": [
"business_profile.product_description",
"business_profile.support_phone",
"business_profile.url",
"external_account",
"tos_acceptance.date",
"tos_acceptance.ip"
],
"past_due": [
"external_account",
"tos_acceptance.date",
"tos_acceptance.ip"
],
"pending_verification": []
},
"settings": {
"bacs_debit_payments": {
"display_name": null,
"service_user_number": null
},
"branding": {
"icon": null,
"logo": null,
"primary_color": null,
"secondary_color": null
},
"card_issuing": {
"tos_acceptance": {
"date": null,
"ip": null
}
},
"card_payments": {
"decline_on": {
"avs_failure": false,
"cvc_failure": false
},
"statement_descriptor_prefix": null,
"statement_descriptor_prefix_kana": null,
"statement_descriptor_prefix_kanji": null
},
"dashboard": {
"display_name": null,
"timezone": "Etc/UTC"
},
"invoices": {
"default_account_tax_ids": null
},
"payments": {
"statement_descriptor": null,
"statement_descriptor_kana": null,
"statement_descriptor_kanji": null
},
"payouts": {
"debit_negative_balances": true,
"schedule": {
"delay_days": 2,
"interval": "daily"
},
"statement_descriptor": null
},
"sepa_debit_payments": {}
},
"tos_acceptance": {
"date": null,
"ip": null,
"user_agent": null
},
"type": "standard"
}
recorded_at: Sun, 18 Feb 2024 23:31:59 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents
@@ -14,7 +221,7 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_wxI46rAQyl4SSe","request_duration_ms":422}}'
- '{"last_request_metrics":{"request_id":"req_gHdtWKWo8Ywyim","request_duration_ms":1712}}'
Stripe-Version:
- '2023-10-16'
X-Stripe-Client-User-Agent:
@@ -23,7 +230,7 @@ http_interactions:
9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon
Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}'
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJpx4FpDs6HNTb
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@@ -36,7 +243,7 @@ http_interactions:
Server:
- nginx
Date:
- Wed, 14 Feb 2024 03:18:33 GMT
- Sun, 18 Feb 2024 23:31:59 GMT
Content-Type:
- application/json
Content-Length:
@@ -61,13 +268,13 @@ http_interactions:
default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none';
img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'
Idempotency-Key:
- c58ef797-9bab-401e-ab3d-4df1bd2507d4
- ee9d6e1c-4298-444c-b7b7-19d6fbc01eb0
Original-Request:
- req_RHfHf6SxOfQFW5
- req_Z8fycI2zLmmQsU
Request-Id:
- req_RHfHf6SxOfQFW5
- req_Z8fycI2zLmmQsU
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJpx4FpDs6HNTb
Stripe-Should-Retry:
- 'false'
Stripe-Version:
@@ -82,7 +289,7 @@ http_interactions:
encoding: UTF-8
string: |-
{
"id": "pi_3OjYzVQQeZbvfZRJ0e0x2sws",
"id": "pi_3OlJpz4FpDs6HNTb0Iz2h8vT",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
@@ -96,9 +303,9 @@ http_interactions:
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "manual",
"client_secret": "pi_3OjYzVQQeZbvfZRJ0e0x2sws_secret_p1V0dEyb3qeHYwrXdTzNu9cG8",
"client_secret": "pi_3OlJpz4FpDs6HNTb0Iz2h8vT_secret_I512Wt8V0ucFAWLSMwHPWXvCA",
"confirmation_method": "automatic",
"created": 1707880713,
"created": 1708299119,
"currency": "aud",
"customer": null,
"description": null,
@@ -109,7 +316,7 @@ http_interactions:
"metadata": {},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1OjYzVQQeZbvfZRJl4Sv9a5X",
"payment_method": "pm_1OlJpz4FpDs6HNTbKam9f2S3",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -134,7 +341,7 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Wed, 14 Feb 2024 03:18:33 GMT
recorded_at: Sun, 18 Feb 2024 23:32:00 GMT
- request:
method: get
uri: https://api.stripe.com/v1/payment_methods/pm_card_mastercard
@@ -149,7 +356,7 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_RHfHf6SxOfQFW5","request_duration_ms":536}}'
- '{"last_request_metrics":{"request_id":"req_Z8fycI2zLmmQsU","request_duration_ms":720}}'
Stripe-Version:
- '2023-10-16'
X-Stripe-Client-User-Agent:
@@ -169,11 +376,11 @@ http_interactions:
Server:
- nginx
Date:
- Wed, 14 Feb 2024 03:18:34 GMT
- Sun, 18 Feb 2024 23:32:01 GMT
Content-Type:
- application/json
Content-Length:
- '942'
- '977'
Connection:
- keep-alive
Access-Control-Allow-Credentials:
@@ -195,7 +402,7 @@ http_interactions:
'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample';
style-src 'self'
Request-Id:
- req_4RtNXuFemQOv6L
- req_ja6110bAf7mNnp
Stripe-Version:
- '2023-10-16'
Vary:
@@ -208,7 +415,7 @@ http_interactions:
encoding: UTF-8
string: |-
{
"id": "pm_1OjYzWKuuB1fWySneavPZ5WZ",
"id": "pm_1OlJq0KuuB1fWySnfoDRqyeT",
"object": "payment_method",
"billing_details": {
"address": {
@@ -231,6 +438,7 @@ http_interactions:
"cvc_check": "unchecked"
},
"country": "US",
"display_brand": "mastercard",
"exp_month": 2,
"exp_year": 2025,
"fingerprint": "BL35fEFVcTTS5wpE",
@@ -248,16 +456,16 @@ http_interactions:
},
"wallet": null
},
"created": 1707880714,
"created": 1708299120,
"customer": null,
"livemode": false,
"metadata": {},
"type": "card"
}
recorded_at: Wed, 14 Feb 2024 03:18:34 GMT
recorded_at: Sun, 18 Feb 2024 23:32:01 GMT
- request:
method: get
uri: https://api.stripe.com/v1/payment_intents/pi_3OjYzVQQeZbvfZRJ0e0x2sws
uri: https://api.stripe.com/v1/payment_intents/pi_3OlJpz4FpDs6HNTb0Iz2h8vT
body:
encoding: US-ASCII
string: ''
@@ -269,7 +477,7 @@ http_interactions:
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_4RtNXuFemQOv6L","request_duration_ms":463}}'
- '{"last_request_metrics":{"request_id":"req_ja6110bAf7mNnp","request_duration_ms":538}}'
Stripe-Version:
- '2023-10-16'
X-Stripe-Client-User-Agent:
@@ -278,7 +486,7 @@ http_interactions:
9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon
Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}'
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJpx4FpDs6HNTb
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@@ -291,7 +499,7 @@ http_interactions:
Server:
- nginx
Date:
- Wed, 14 Feb 2024 03:18:34 GMT
- Sun, 18 Feb 2024 23:32:01 GMT
Content-Type:
- application/json
Content-Length:
@@ -317,9 +525,9 @@ http_interactions:
'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample';
style-src 'self'
Request-Id:
- req_PnWqcN06vWvMR9
- req_7o6W2mEV9dHwzj
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJpx4FpDs6HNTb
Stripe-Version:
- '2023-10-16'
Vary:
@@ -332,7 +540,7 @@ http_interactions:
encoding: UTF-8
string: |-
{
"id": "pi_3OjYzVQQeZbvfZRJ0e0x2sws",
"id": "pi_3OlJpz4FpDs6HNTb0Iz2h8vT",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
@@ -346,9 +554,9 @@ http_interactions:
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "manual",
"client_secret": "pi_3OjYzVQQeZbvfZRJ0e0x2sws_secret_p1V0dEyb3qeHYwrXdTzNu9cG8",
"client_secret": "pi_3OlJpz4FpDs6HNTb0Iz2h8vT_secret_I512Wt8V0ucFAWLSMwHPWXvCA",
"confirmation_method": "automatic",
"created": 1707880713,
"created": 1708299119,
"currency": "aud",
"customer": null,
"description": null,
@@ -359,7 +567,7 @@ http_interactions:
"metadata": {},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1OjYzVQQeZbvfZRJl4Sv9a5X",
"payment_method": "pm_1OlJpz4FpDs6HNTbKam9f2S3",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -384,10 +592,10 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Wed, 14 Feb 2024 03:18:34 GMT
recorded_at: Sun, 18 Feb 2024 23:32:01 GMT
- request:
method: post
uri: https://api.stripe.com/v1/payment_intents/pi_3OjYzVQQeZbvfZRJ0e0x2sws/cancel
uri: https://api.stripe.com/v1/payment_intents/pi_3OlJpz4FpDs6HNTb0Iz2h8vT/cancel
body:
encoding: US-ASCII
string: ''
@@ -405,7 +613,7 @@ http_interactions:
X-Stripe-Client-User-Metadata:
- '{"ip":null}'
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJpx4FpDs6HNTb
Connection:
- close
Accept-Encoding:
@@ -420,7 +628,7 @@ http_interactions:
Server:
- nginx
Date:
- Wed, 14 Feb 2024 03:18:35 GMT
- Sun, 18 Feb 2024 23:32:02 GMT
Content-Type:
- application/json
Content-Length:
@@ -446,13 +654,13 @@ http_interactions:
'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample';
style-src 'self'
Idempotency-Key:
- c527367d-ab3f-4141-9d50-2dadee2eb10d
- add367a8-a518-4762-9e62-16695b6a49ca
Original-Request:
- req_mgU0tpR5EE5dow
- req_juZ0k8HqCGOhHL
Request-Id:
- req_mgU0tpR5EE5dow
- req_juZ0k8HqCGOhHL
Stripe-Account:
- acct_1OhZ9lQQeZbvfZRJ
- acct_1OlJpx4FpDs6HNTb
Stripe-Should-Retry:
- 'false'
Stripe-Version:
@@ -467,7 +675,7 @@ http_interactions:
encoding: UTF-8
string: |-
{
"id": "pi_3OjYzVQQeZbvfZRJ0e0x2sws",
"id": "pi_3OlJpz4FpDs6HNTb0Iz2h8vT",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
@@ -478,7 +686,7 @@ http_interactions:
"application": "<HIDDEN-STRIPE_CLIENT_ID>",
"application_fee_amount": null,
"automatic_payment_methods": null,
"canceled_at": 1707880715,
"canceled_at": 1708299122,
"cancellation_reason": null,
"capture_method": "manual",
"charges": {
@@ -486,11 +694,11 @@ http_interactions:
"data": [],
"has_more": false,
"total_count": 0,
"url": "/v1/charges?payment_intent=pi_3OjYzVQQeZbvfZRJ0e0x2sws"
"url": "/v1/charges?payment_intent=pi_3OlJpz4FpDs6HNTb0Iz2h8vT"
},
"client_secret": "pi_3OjYzVQQeZbvfZRJ0e0x2sws_secret_p1V0dEyb3qeHYwrXdTzNu9cG8",
"client_secret": "pi_3OlJpz4FpDs6HNTb0Iz2h8vT_secret_I512Wt8V0ucFAWLSMwHPWXvCA",
"confirmation_method": "automatic",
"created": 1707880713,
"created": 1708299119,
"currency": "aud",
"customer": null,
"description": null,
@@ -501,7 +709,7 @@ http_interactions:
"metadata": {},
"next_action": null,
"on_behalf_of": null,
"payment_method": "pm_1OjYzVQQeZbvfZRJl4Sv9a5X",
"payment_method": "pm_1OlJpz4FpDs6HNTbKam9f2S3",
"payment_method_configuration_details": null,
"payment_method_options": {
"card": {
@@ -526,5 +734,5 @@ http_interactions:
"transfer_data": null,
"transfer_group": null
}
recorded_at: Wed, 14 Feb 2024 03:18:35 GMT
recorded_at: Sun, 18 Feb 2024 23:32:02 GMT
recorded_with: VCR 6.2.0

View File

@@ -38,6 +38,14 @@ describe Spree::Gateway::StripeSCA, type: :model do
})
end
let(:connected_account) do
Stripe::Account.create({
type: 'standard',
country: 'AU',
email: 'carrot.producer@example.com'
})
end
describe "#purchase", :vcr, :stripe_version do
# Stripe acepts amounts as positive integers representing how much to charge
# in the smallest currency unit
@@ -64,8 +72,7 @@ describe Spree::Gateway::StripeSCA, type: :model do
end
describe "#void", :vcr, :stripe_version do
# This is the first account retrieved using Stripe::Account.list
let(:stripe_test_account) { "acct_1OhZ9lQQeZbvfZRJ" }
let(:stripe_test_account) { connected_account.id }
before do
# Inject our test stripe account
@@ -135,8 +142,7 @@ describe Spree::Gateway::StripeSCA, type: :model do
end
describe "#credit", :vcr, :stripe_version do
# This is the first account retrieved using Stripe::Account.list
let(:stripe_test_account) { "acct_1OhZ9lQQeZbvfZRJ" }
let(:stripe_test_account) { connected_account.id }
before do
# Inject our test stripe account