diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.13.0/_As_an_hub_manager_I_want_to_make_Stripe_payments_/with_a_payment_using_a_StripeSCA_payment_method/that_is_completed/allows_to_refund_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.13.0/_As_an_hub_manager_I_want_to_make_Stripe_payments_/with_a_payment_using_a_StripeSCA_payment_method/that_is_completed/allows_to_refund_the_payment.yml index d2e90465b4..c35067a952 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.13.0/_As_an_hub_manager_I_want_to_make_Stripe_payments_/with_a_payment_using_a_StripeSCA_payment_method/that_is_completed/allows_to_refund_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.13.0/_As_an_hub_manager_I_want_to_make_Stripe_payments_/with_a_payment_using_a_StripeSCA_payment_method/that_is_completed/allows_to_refund_the_payment.yml @@ -13,8 +13,6 @@ http_interactions: - "" Content-Type: - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_SIi2VfiKBKwO71","request_duration_ms":307}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -31,7 +29,7 @@ http_interactions: Server: - nginx Date: - - Mon, 25 Mar 2024 01:06:07 GMT + - Mon, 01 Apr 2024 10:00:07 GMT Content-Type: - application/json Content-Length: @@ -58,15 +56,15 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 5cc51bf3-ba16-45aa-a9c1-45e59aca4e6e + - 894d988f-0964-465e-96a4-cbc43d6cff62 Original-Request: - - req_gL2DHHWKEt9WY4 + - req_L06jsKcXNbzYER Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_gL2DHHWKEt9WY4 + - req_L06jsKcXNbzYER Stripe-Should-Retry: - 'false' Stripe-Version: @@ -81,7 +79,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "acct_1Oy1zF4Gzo74w4IY", + "id": "acct_1P0herQTjBVDfK8a", "object": "account", "business_profile": { "annual_revenue": null, @@ -103,7 +101,7 @@ http_interactions: "type": "application" }, "country": "AU", - "created": 1711328766, + "created": 1711965606, "default_currency": "aud", "details_submitted": false, "email": "lettuce.producer@example.com", @@ -112,7 +110,7 @@ http_interactions: "data": [], "has_more": false, "total_count": 0, - "url": "/v1/accounts/acct_1Oy1zF4Gzo74w4IY/external_accounts" + "url": "/v1/accounts/acct_1P0herQTjBVDfK8a/external_accounts" }, "future_requirements": { "alternatives": [], @@ -209,7 +207,7 @@ http_interactions: }, "type": "standard" } - recorded_at: Mon, 25 Mar 2024 01:06:07 GMT + recorded_at: Mon, 01 Apr 2024 10:00:06 GMT - request: method: get uri: https://api.stripe.com/v1/payment_methods/pm_card_mastercard @@ -224,7 +222,7 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_gL2DHHWKEt9WY4","request_duration_ms":1585}}' + - '{"last_request_metrics":{"request_id":"req_L06jsKcXNbzYER","request_duration_ms":1991}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: @@ -241,7 +239,7 @@ http_interactions: Server: - nginx Date: - - Mon, 25 Mar 2024 01:06:07 GMT + - Mon, 01 Apr 2024 10:00:07 GMT Content-Type: - application/json Content-Length: @@ -273,7 +271,7 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_zb7FA0di3NsMHU + - req_vWioO9TiRIjFMJ Stripe-Version: - '2023-10-16' Vary: @@ -286,7 +284,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1Oy1zHKuuB1fWySnvptpC3Yy", + "id": "pm_1P0hetKuuB1fWySne9uWJYPX", "object": "payment_method", "billing_details": { "address": { @@ -310,7 +308,7 @@ http_interactions: }, "country": "US", "display_brand": "mastercard", - "exp_month": 3, + "exp_month": 4, "exp_year": 2025, "fingerprint": "BL35fEFVcTTS5wpE", "funding": "credit", @@ -327,13 +325,13 @@ http_interactions: }, "wallet": null }, - "created": 1711328767, + "created": 1711965607, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 25 Mar 2024 01:06:07 GMT + recorded_at: Mon, 01 Apr 2024 10:00:07 GMT - request: method: post uri: https://api.stripe.com/v1/payment_intents @@ -348,13 +346,13 @@ http_interactions: Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_zb7FA0di3NsMHU","request_duration_ms":388}}' + - '{"last_request_metrics":{"request_id":"req_vWioO9TiRIjFMJ","request_duration_ms":495}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - "" Stripe-Account: - - acct_1Oy1zF4Gzo74w4IY + - acct_1P0herQTjBVDfK8a Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -367,7 +365,7 @@ http_interactions: Server: - nginx Date: - - Mon, 25 Mar 2024 01:06:09 GMT + - Mon, 01 Apr 2024 10:00:09 GMT Content-Type: - application/json Content-Length: @@ -394,17 +392,17 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 13d69ece-7fba-4979-8a6d-d9d385606451 + - f729fae8-2e8d-4c89-b101-46b2343325aa Original-Request: - - req_ybAeua31aoGvov + - req_gKh9rEHg5FbISS Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_ybAeua31aoGvov + - req_gKh9rEHg5FbISS Stripe-Account: - - acct_1Oy1zF4Gzo74w4IY + - acct_1P0herQTjBVDfK8a Stripe-Should-Retry: - 'false' Stripe-Version: @@ -419,7 +417,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3Oy1zH4Gzo74w4IY0Cmzw6Zs", + "id": "pi_3P0heuQTjBVDfK8a0gBRJEL6", "object": "payment_intent", "amount": 2600, "amount_capturable": 0, @@ -435,18 +433,18 @@ http_interactions: "capture_method": "automatic", "client_secret": "", "confirmation_method": "automatic", - "created": 1711328767, + "created": 1711965608, "currency": "aud", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3Oy1zH4Gzo74w4IY0FgasZx5", + "latest_charge": "ch_3P0heuQTjBVDfK8a0a5WwJKV", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1Oy1zH4Gzo74w4IY2pn1gAqH", + "payment_method": "pm_1P0heuQTjBVDfK8aBSEO0abL", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -471,10 +469,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 25 Mar 2024 01:06:09 GMT + recorded_at: Mon, 01 Apr 2024 10:00:08 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3Oy1zH4Gzo74w4IY0Cmzw6Zs + uri: https://api.stripe.com/v1/payment_intents/pi_3P0heuQTjBVDfK8a0gBRJEL6 body: encoding: US-ASCII string: '' @@ -490,7 +488,7 @@ http_interactions: X-Stripe-Client-User-Agent: - "" Stripe-Account: - - acct_1Oy1zF4Gzo74w4IY + - acct_1P0herQTjBVDfK8a Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 Accept: @@ -503,7 +501,7 @@ http_interactions: Server: - nginx Date: - - Mon, 25 Mar 2024 01:06:15 GMT + - Mon, 01 Apr 2024 10:00:11 GMT Content-Type: - application/json Content-Length: @@ -535,9 +533,9 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_d5isEd1g6f9UMk + - req_ddnixS5X4GzrFe Stripe-Account: - - acct_1Oy1zF4Gzo74w4IY + - acct_1P0herQTjBVDfK8a Stripe-Version: - '2023-10-16' Vary: @@ -550,7 +548,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3Oy1zH4Gzo74w4IY0Cmzw6Zs", + "id": "pi_3P0heuQTjBVDfK8a0gBRJEL6", "object": "payment_intent", "amount": 2600, "amount_capturable": 0, @@ -566,18 +564,18 @@ http_interactions: "capture_method": "automatic", "client_secret": "", "confirmation_method": "automatic", - "created": 1711328767, + "created": 1711965608, "currency": "aud", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3Oy1zH4Gzo74w4IY0FgasZx5", + "latest_charge": "ch_3P0heuQTjBVDfK8a0a5WwJKV", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1Oy1zH4Gzo74w4IY2pn1gAqH", + "payment_method": "pm_1P0heuQTjBVDfK8aBSEO0abL", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -602,10 +600,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 25 Mar 2024 01:06:15 GMT + recorded_at: Mon, 01 Apr 2024 10:00:10 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3Oy1zH4Gzo74w4IY0Cmzw6Zs + uri: https://api.stripe.com/v1/payment_intents/pi_3P0heuQTjBVDfK8a0gBRJEL6 body: encoding: US-ASCII string: '' @@ -621,7 +619,7 @@ http_interactions: X-Stripe-Client-User-Metadata: - '{"ip":null}' Stripe-Account: - - acct_1Oy1zF4Gzo74w4IY + - acct_1P0herQTjBVDfK8a Connection: - close Accept-Encoding: @@ -636,7 +634,7 @@ http_interactions: Server: - nginx Date: - - Mon, 25 Mar 2024 01:06:15 GMT + - Mon, 01 Apr 2024 10:00:11 GMT Content-Type: - application/json Content-Length: @@ -668,9 +666,9 @@ http_interactions: Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_nk97z3InXQ8xRo + - req_f5WYRcAhEZFokf Stripe-Account: - - acct_1Oy1zF4Gzo74w4IY + - acct_1P0herQTjBVDfK8a Stripe-Version: - '2020-08-27' Vary: @@ -683,7 +681,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3Oy1zH4Gzo74w4IY0Cmzw6Zs", + "id": "pi_3P0heuQTjBVDfK8a0gBRJEL6", "object": "payment_intent", "amount": 2600, "amount_capturable": 0, @@ -701,7 +699,7 @@ http_interactions: "object": "list", "data": [ { - "id": "ch_3Oy1zH4Gzo74w4IY0FgasZx5", + "id": "ch_3P0heuQTjBVDfK8a0a5WwJKV", "object": "charge", "amount": 2600, "amount_captured": 2600, @@ -709,7 +707,7 @@ http_interactions: "application": "", "application_fee": null, "application_fee_amount": null, - "balance_transaction": "txn_3Oy1zH4Gzo74w4IY0aZsdH9L", + "balance_transaction": "txn_3P0heuQTjBVDfK8a0x7dKX45", "billing_details": { "address": { "city": null, @@ -725,7 +723,7 @@ http_interactions: }, "calculated_statement_descriptor": "OFNOFNOFN", "captured": true, - "created": 1711328768, + "created": 1711965608, "currency": "aud", "customer": null, "description": null, @@ -745,13 +743,13 @@ http_interactions: "network_status": "approved_by_network", "reason": null, "risk_level": "normal", - "risk_score": 13, + "risk_score": 10, "seller_message": "Payment complete.", "type": "authorized" }, "paid": true, - "payment_intent": "pi_3Oy1zH4Gzo74w4IY0Cmzw6Zs", - "payment_method": "pm_1Oy1zH4Gzo74w4IY2pn1gAqH", + "payment_intent": "pi_3P0heuQTjBVDfK8a0gBRJEL6", + "payment_method": "pm_1P0heuQTjBVDfK8aBSEO0abL", "payment_method_details": { "card": { "amount_authorized": 2600, @@ -762,7 +760,7 @@ http_interactions: "cvc_check": "pass" }, "country": "US", - "exp_month": 3, + "exp_month": 4, "exp_year": 2025, "extended_authorization": { "status": "disabled" @@ -794,14 +792,14 @@ http_interactions: "radar_options": {}, "receipt_email": null, "receipt_number": null, - "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT3kxekY0R3pvNzR3NElZKIecg7AGMgag_LXvnno6LBZ_5X55Zs33z_qqfq99QavqBCnC_VHntkc6o5E84xzoZhirXFuV0xND3uqO", + "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xUDBoZXJRVGpCVkRmSzhhKKuLqrAGMgZl5iBA3Tk6LBah2hXiN2VZVWEI8C03u5ojHBD7WR0LtJ1qOR8waX9LZmiGOtmFJDNtAcIn", "refunded": false, "refunds": { "object": "list", "data": [], "has_more": false, "total_count": 0, - "url": "/v1/charges/ch_3Oy1zH4Gzo74w4IY0FgasZx5/refunds" + "url": "/v1/charges/ch_3P0heuQTjBVDfK8a0a5WwJKV/refunds" }, "review": null, "shipping": null, @@ -816,22 +814,22 @@ http_interactions: ], "has_more": false, "total_count": 1, - "url": "/v1/charges?payment_intent=pi_3Oy1zH4Gzo74w4IY0Cmzw6Zs" + "url": "/v1/charges?payment_intent=pi_3P0heuQTjBVDfK8a0gBRJEL6" }, "client_secret": "", "confirmation_method": "automatic", - "created": 1711328767, + "created": 1711965608, "currency": "aud", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3Oy1zH4Gzo74w4IY0FgasZx5", + "latest_charge": "ch_3P0heuQTjBVDfK8a0a5WwJKV", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1Oy1zH4Gzo74w4IY2pn1gAqH", + "payment_method": "pm_1P0heuQTjBVDfK8aBSEO0abL", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -856,10 +854,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 25 Mar 2024 01:06:16 GMT + recorded_at: Mon, 01 Apr 2024 10:00:11 GMT - request: method: post - uri: https://api.stripe.com/v1/charges/ch_3Oy1zH4Gzo74w4IY0FgasZx5/refunds + uri: https://api.stripe.com/v1/charges/ch_3P0heuQTjBVDfK8a0a5WwJKV/refunds body: encoding: UTF-8 string: amount=2600&expand[0]=charge @@ -877,7 +875,7 @@ http_interactions: X-Stripe-Client-User-Metadata: - '{"ip":null}' Stripe-Account: - - acct_1Oy1zF4Gzo74w4IY + - acct_1P0herQTjBVDfK8a Connection: - close Accept-Encoding: @@ -892,7 +890,7 @@ http_interactions: Server: - nginx Date: - - Mon, 25 Mar 2024 01:06:17 GMT + - Mon, 01 Apr 2024 10:00:13 GMT Content-Type: - application/json Content-Length: @@ -920,17 +918,17 @@ http_interactions: Cross-Origin-Opener-Policy-Report-Only: - same-origin; report-to="coop" Idempotency-Key: - - 5df35d88-f54f-4df9-be43-31fdb1e07eca + - 4442c923-f666-4f9e-b74c-8d6993bd0347 Original-Request: - - req_o456KUltmvEaJV + - req_NxYfZfAEt2L2Rx Report-To: - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' Reporting-Endpoints: - coop="https://q.stripe.com/coop-report" Request-Id: - - req_o456KUltmvEaJV + - req_NxYfZfAEt2L2Rx Stripe-Account: - - acct_1Oy1zF4Gzo74w4IY + - acct_1P0herQTjBVDfK8a Stripe-Should-Retry: - 'false' Stripe-Version: @@ -945,12 +943,12 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "re_3Oy1zH4Gzo74w4IY0vLupviX", + "id": "re_3P0heuQTjBVDfK8a00UpmaQ6", "object": "refund", "amount": 2600, - "balance_transaction": "txn_3Oy1zH4Gzo74w4IY0fdc64JK", + "balance_transaction": "txn_3P0heuQTjBVDfK8a0TBrCthB", "charge": { - "id": "ch_3Oy1zH4Gzo74w4IY0FgasZx5", + "id": "ch_3P0heuQTjBVDfK8a0a5WwJKV", "object": "charge", "amount": 2600, "amount_captured": 2600, @@ -958,7 +956,7 @@ http_interactions: "application": "", "application_fee": null, "application_fee_amount": null, - "balance_transaction": "txn_3Oy1zH4Gzo74w4IY0aZsdH9L", + "balance_transaction": "txn_3P0heuQTjBVDfK8a0x7dKX45", "billing_details": { "address": { "city": null, @@ -974,7 +972,7 @@ http_interactions: }, "calculated_statement_descriptor": "OFNOFNOFN", "captured": true, - "created": 1711328768, + "created": 1711965608, "currency": "aud", "customer": null, "description": null, @@ -994,13 +992,13 @@ http_interactions: "network_status": "approved_by_network", "reason": null, "risk_level": "normal", - "risk_score": 13, + "risk_score": 10, "seller_message": "Payment complete.", "type": "authorized" }, "paid": true, - "payment_intent": "pi_3Oy1zH4Gzo74w4IY0Cmzw6Zs", - "payment_method": "pm_1Oy1zH4Gzo74w4IY2pn1gAqH", + "payment_intent": "pi_3P0heuQTjBVDfK8a0gBRJEL6", + "payment_method": "pm_1P0heuQTjBVDfK8aBSEO0abL", "payment_method_details": { "card": { "amount_authorized": 2600, @@ -1011,7 +1009,7 @@ http_interactions: "cvc_check": "pass" }, "country": "US", - "exp_month": 3, + "exp_month": 4, "exp_year": 2025, "extended_authorization": { "status": "disabled" @@ -1043,18 +1041,18 @@ http_interactions: "radar_options": {}, "receipt_email": null, "receipt_number": null, - "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT3kxekY0R3pvNzR3NElZKImcg7AGMgZZta4Xdyo6LBYRvQ1spFAm7rGx_xZxItYb-XK_475iGkG-hUYgMR4ORxVehvhcNSRzdDNK", + "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xUDBoZXJRVGpCVkRmSzhhKK2LqrAGMgZFrKZLsbw6LBaxLtTKUnb--xZneOjdSBMJDQz_yksC-OUOmpLLerbi0qPjd6jy3jizBg0t", "refunded": true, "refunds": { "object": "list", "data": [ { - "id": "re_3Oy1zH4Gzo74w4IY0vLupviX", + "id": "re_3P0heuQTjBVDfK8a00UpmaQ6", "object": "refund", "amount": 2600, - "balance_transaction": "txn_3Oy1zH4Gzo74w4IY0fdc64JK", - "charge": "ch_3Oy1zH4Gzo74w4IY0FgasZx5", - "created": 1711328776, + "balance_transaction": "txn_3P0heuQTjBVDfK8a0TBrCthB", + "charge": "ch_3P0heuQTjBVDfK8a0a5WwJKV", + "created": 1711965612, "currency": "aud", "destination_details": { "card": { @@ -1065,7 +1063,7 @@ http_interactions: "type": "card" }, "metadata": {}, - "payment_intent": "pi_3Oy1zH4Gzo74w4IY0Cmzw6Zs", + "payment_intent": "pi_3P0heuQTjBVDfK8a0gBRJEL6", "reason": null, "receipt_number": null, "source_transfer_reversal": null, @@ -1075,7 +1073,7 @@ http_interactions: ], "has_more": false, "total_count": 1, - "url": "/v1/charges/ch_3Oy1zH4Gzo74w4IY0FgasZx5/refunds" + "url": "/v1/charges/ch_3P0heuQTjBVDfK8a0a5WwJKV/refunds" }, "review": null, "shipping": null, @@ -1087,7 +1085,7 @@ http_interactions: "transfer_data": null, "transfer_group": null }, - "created": 1711328776, + "created": 1711965612, "currency": "aud", "destination_details": { "card": { @@ -1098,12 +1096,94 @@ http_interactions: "type": "card" }, "metadata": {}, - "payment_intent": "pi_3Oy1zH4Gzo74w4IY0Cmzw6Zs", + "payment_intent": "pi_3P0heuQTjBVDfK8a0gBRJEL6", "reason": null, "receipt_number": null, "source_transfer_reversal": null, "status": "succeeded", "transfer_reversal": null } - recorded_at: Mon, 25 Mar 2024 01:06:17 GMT + recorded_at: Mon, 01 Apr 2024 10:00:12 GMT +- request: + method: delete + uri: https://api.stripe.com/v1/accounts/acct_1P0herQTjBVDfK8a + body: + encoding: US-ASCII + string: '' + headers: + User-Agent: + - Stripe/v1 RubyBindings/10.13.0 + Authorization: + - "" + Content-Type: + - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_gKh9rEHg5FbISS","request_duration_ms":1524}}' + Stripe-Version: + - '2023-10-16' + X-Stripe-Client-User-Agent: + - "" + 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: + - Mon, 01 Apr 2024 10:00:13 GMT + Content-Type: + - application/json + Content-Length: + - '77' + 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%2F%3Aaccount; 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' + Cross-Origin-Opener-Policy-Report-Only: + - same-origin; report-to="coop" + Report-To: + - '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}' + Reporting-Endpoints: + - coop="https://q.stripe.com/coop-report" + Request-Id: + - req_E52hF9rOGNiT8Q + Stripe-Account: + - acct_1P0herQTjBVDfK8a + 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_1P0herQTjBVDfK8a", + "object": "account", + "deleted": true + } + recorded_at: Mon, 01 Apr 2024 10:00:13 GMT recorded_with: VCR 6.2.0 diff --git a/spec/system/admin/payments_stripe_spec.rb b/spec/system/admin/payments_stripe_spec.rb index 1c6b96ae58..19ebf58306 100644 --- a/spec/system/admin/payments_stripe_spec.rb +++ b/spec/system/admin/payments_stripe_spec.rb @@ -192,6 +192,10 @@ describe ' order.payments << payment end + after do + Stripe::Account.delete(connected_account.id) + end + it "allows to refund the payment" do login_as_admin visit spree.admin_order_payments_path order