From ef1d2fdb4d4e4b81254cad6ba28f687e8c1ff982 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Wed, 14 Feb 2024 14:19:01 +1100 Subject: [PATCH] Clean up cassettes * remove old cassettes left over from a rebase * re recorded cassettes with the lastest Stripe version --- .../refunds_the_payment.yml | 1149 ----------------- .../void_the_payment.yml | 524 -------- .../_credit/refunds_the_payment.yml | 228 +--- .../refunds_the_payment.yml | 152 +-- .../void_the_payment.yml | 86 +- 5 files changed, 175 insertions(+), 1964 deletions(-) delete mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Spree_Gateway_StripeSCA/_void/with_a_confirmed_payment/refunds_the_payment.yml delete mode 100644 spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Spree_Gateway_StripeSCA/_void/with_a_voidable_payment/void_the_payment.yml rename spec/fixtures/vcr_cassettes/{Stripe-v10.6.0 => Stripe-v10.8.0}/Spree_Gateway_StripeSCA/_credit/refunds_the_payment.yml (73%) rename spec/fixtures/vcr_cassettes/{Stripe-v10.6.0 => Stripe-v10.8.0}/Spree_Gateway_StripeSCA/_void/with_a_confirmed_payment/refunds_the_payment.yml (86%) rename spec/fixtures/vcr_cassettes/{Stripe-v10.6.0 => Stripe-v10.8.0}/Spree_Gateway_StripeSCA/_void/with_a_voidable_payment/void_the_payment.yml (87%) diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Spree_Gateway_StripeSCA/_void/with_a_confirmed_payment/refunds_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Spree_Gateway_StripeSCA/_void/with_a_confirmed_payment/refunds_the_payment.yml deleted file mode 100644 index c3cce8b8a6..0000000000 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Spree_Gateway_StripeSCA/_void/with_a_confirmed_payment/refunds_the_payment.yml +++ /dev/null @@ -1,1149 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: https://api.stripe.com/v1/payment_methods/pm_card_mastercard - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_RQ4tnyZMxaTrfg","request_duration_ms":920}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.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: - - Mon, 12 Feb 2024 03:46:37 GMT - Content-Type: - - application/json - Content-Length: - - '942' - 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%2Fpayment_methods%2F%3Apayment_method; - 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' - Request-Id: - - req_AMPupOEWxQpMvJ - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Non-Api-Overhead-Duration-Ms: - - '140.0' - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pm_1OiqTZGkyVbTBiYeSbdHHVBU", - "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": "mastercard", - "checks": { - "address_line1_check": null, - "address_postal_code_check": null, - "cvc_check": "unchecked" - }, - "country": "US", - "exp_month": 2, - "exp_year": 2025, - "fingerprint": "1Zr75a6zBSZLu0Zp", - "funding": "credit", - "generated_from": null, - "last4": "4444", - "networks": { - "available": [ - "mastercard" - ], - "preferred": null - }, - "three_d_secure_usage": { - "supported": true - }, - "wallet": null - }, - "created": 1707709597, - "customer": null, - "livemode": false, - "metadata": {}, - "type": "card" - } - recorded_at: Mon, 12 Feb 2024 03:46:37 GMT -- request: - method: post - uri: https://api.stripe.com/v1/payment_intents - body: - encoding: UTF-8 - string: amount=1000¤cy=aud&payment_method=pm_card_mastercard&payment_method_types[0]=card&capture_method=manual - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_AMPupOEWxQpMvJ","request_duration_ms":356}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.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"}' - Stripe-Account: - - acct_1APQreGkyVbTBiYe - 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, 12 Feb 2024 03:46:38 GMT - Content-Type: - - application/json - Content-Length: - - '1344' - 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%2Fpayment_intents; 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: - - 65755257-63df-450c-9bf4-90d6512d869a - Original-Request: - - req_Y9z6pafg0X39IU - Request-Id: - - req_Y9z6pafg0X39IU - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Non-Api-Overhead-Duration-Ms: - - '306.0' - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OiqTaGkyVbTBiYe0nUcBPZV", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OiqTaGkyVbTBiYe0nUcBPZV_secret_2KT0oh8uYFUeQONViEq7ZWLgN", - "confirmation_method": "automatic", - "created": 1707709598, - "currency": "aud", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": null, - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OiqTaGkyVbTBiYeLv5l0zWX", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_confirmation", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Mon, 12 Feb 2024 03:46:38 GMT -- request: - method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OiqTaGkyVbTBiYe0nUcBPZV/confirm - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Y9z6pafg0X39IU","request_duration_ms":528}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.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: - - Mon, 12 Feb 2024 03:46:39 GMT - Content-Type: - - application/json - Content-Length: - - '1367' - 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%2Fpayment_intents%2F%3Aintent%2Fconfirm; - 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: - - 43c15925-cb4a-4302-8ba7-1c60c45a4148 - Original-Request: - - req_nFqQkMl1tz0Za6 - Request-Id: - - req_nFqQkMl1tz0Za6 - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Non-Api-Overhead-Duration-Ms: - - '722.0' - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OiqTaGkyVbTBiYe0nUcBPZV", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 1000, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OiqTaGkyVbTBiYe0nUcBPZV_secret_2KT0oh8uYFUeQONViEq7ZWLgN", - "confirmation_method": "automatic", - "created": 1707709598, - "currency": "aud", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OiqTaGkyVbTBiYe0O6Hj6zD", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OiqTaGkyVbTBiYeLv5l0zWX", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_capture", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Mon, 12 Feb 2024 03:46:39 GMT -- request: - method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OiqTaGkyVbTBiYe0nUcBPZV/capture - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_nFqQkMl1tz0Za6","request_duration_ms":1012}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.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: - - Mon, 12 Feb 2024 03:46:40 GMT - Content-Type: - - application/json - Content-Length: - - '1360' - 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%2Fpayment_intents%2F%3Aintent%2Fcapture; - 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: - - 369fad8e-e4ff-4766-a931-602e295519d8 - Original-Request: - - req_UkosKenQjluRqt - Request-Id: - - req_UkosKenQjluRqt - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Non-Api-Overhead-Duration-Ms: - - '676.0' - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OiqTaGkyVbTBiYe0nUcBPZV", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 1000, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OiqTaGkyVbTBiYe0nUcBPZV_secret_2KT0oh8uYFUeQONViEq7ZWLgN", - "confirmation_method": "automatic", - "created": 1707709598, - "currency": "aud", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OiqTaGkyVbTBiYe0O6Hj6zD", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OiqTaGkyVbTBiYeLv5l0zWX", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "succeeded", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Mon, 12 Feb 2024 03:46:40 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OiqTaGkyVbTBiYe0nUcBPZV - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_UkosKenQjluRqt","request_duration_ms":869}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.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"}' - Stripe-Account: - - acct_1APQreGkyVbTBiYe - 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, 12 Feb 2024 03:46:41 GMT - Content-Type: - - application/json - Content-Length: - - '1360' - 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%2Fpayment_intents%2F%3Aintent; - 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' - Request-Id: - - req_bkByviWmLTQOfW - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Non-Api-Overhead-Duration-Ms: - - '60.0' - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OiqTaGkyVbTBiYe0nUcBPZV", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 1000, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OiqTaGkyVbTBiYe0nUcBPZV_secret_2KT0oh8uYFUeQONViEq7ZWLgN", - "confirmation_method": "automatic", - "created": 1707709598, - "currency": "aud", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OiqTaGkyVbTBiYe0O6Hj6zD", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OiqTaGkyVbTBiYeLv5l0zWX", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "succeeded", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Mon, 12 Feb 2024 03:46:41 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OiqTaGkyVbTBiYe0nUcBPZV - body: - encoding: US-ASCII - string: '' - headers: - Authorization: - - Basic c2tfdGVzdF9HRlFXMnU4c2xsbmxBTzYxN2FUODFRdko6 - User-Agent: - - Stripe/v1 ActiveMerchantBindings/1.133.0 - Stripe-Version: - - '2020-08-27' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"1.133.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","publisher":"active_merchant"}' - X-Stripe-Client-User-Metadata: - - '{"ip":null}' - Stripe-Account: - - acct_1APQreGkyVbTBiYe - Connection: - - close - 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, 12 Feb 2024 03:46:41 GMT - Content-Type: - - application/json - Content-Length: - - '5139' - Connection: - - close - 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%2Fpayment_intents%2F%3Aintent; - 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' - Request-Id: - - req_UtyUK1MQapAOEz - Stripe-Version: - - '2020-08-27' - Vary: - - Origin - X-Stripe-Non-Api-Overhead-Duration-Ms: - - '117.0' - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OiqTaGkyVbTBiYe0nUcBPZV", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 1000, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "charges": { - "object": "list", - "data": [ - { - "id": "ch_3OiqTaGkyVbTBiYe0O6Hj6zD", - "object": "charge", - "amount": 1000, - "amount_captured": 1000, - "amount_refunded": 0, - "application": null, - "application_fee": null, - "application_fee_amount": null, - "balance_transaction": "txn_3OiqTaGkyVbTBiYe0AQLBi3e", - "billing_details": { - "address": { - "city": null, - "country": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "email": null, - "name": null, - "phone": null - }, - "calculated_statement_descriptor": "OPENFOODNETWORK", - "captured": true, - "created": 1707709599, - "currency": "aud", - "customer": null, - "description": null, - "destination": null, - "dispute": null, - "disputed": false, - "failure_balance_transaction": null, - "failure_code": null, - "failure_message": null, - "fraud_details": {}, - "invoice": null, - "livemode": false, - "metadata": {}, - "on_behalf_of": null, - "order": null, - "outcome": { - "network_status": "approved_by_network", - "reason": null, - "risk_level": "normal", - "risk_score": 13, - "seller_message": "Payment complete.", - "type": "authorized" - }, - "paid": true, - "payment_intent": "pi_3OiqTaGkyVbTBiYe0nUcBPZV", - "payment_method": "pm_1OiqTaGkyVbTBiYeLv5l0zWX", - "payment_method_details": { - "card": { - "amount_authorized": 1000, - "brand": "mastercard", - "capture_before": 1708314399, - "checks": { - "address_line1_check": null, - "address_postal_code_check": null, - "cvc_check": "pass" - }, - "country": "US", - "exp_month": 2, - "exp_year": 2025, - "extended_authorization": { - "status": "disabled" - }, - "fingerprint": "1Zr75a6zBSZLu0Zp", - "funding": "credit", - "incremental_authorization": { - "status": "unavailable" - }, - "installments": null, - "last4": "4444", - "mandate": null, - "multicapture": { - "status": "unavailable" - }, - "network": "mastercard", - "network_token": { - "used": false - }, - "overcapture": { - "maximum_amount_capturable": 1000, - "status": "unavailable" - }, - "three_d_secure": null, - "wallet": null - }, - "type": "card" - }, - "radar_options": {}, - "receipt_email": null, - "receipt_number": null, - "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xQVBRcmVHa3lWYlRCaVllKKGppq4GMgYKu9Q4B5A6LBaTUzdg_aQZMp9WlQueacwdHTSVg_dxKop9ZZpxY9MYvYW5Q-ZabNXYn7dp", - "refunded": false, - "refunds": { - "object": "list", - "data": [], - "has_more": false, - "total_count": 0, - "url": "/v1/charges/ch_3OiqTaGkyVbTBiYe0O6Hj6zD/refunds" - }, - "review": null, - "shipping": null, - "source": null, - "source_transfer": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "succeeded", - "transfer_data": null, - "transfer_group": null - } - ], - "has_more": false, - "total_count": 1, - "url": "/v1/charges?payment_intent=pi_3OiqTaGkyVbTBiYe0nUcBPZV" - }, - "client_secret": "pi_3OiqTaGkyVbTBiYe0nUcBPZV_secret_2KT0oh8uYFUeQONViEq7ZWLgN", - "confirmation_method": "automatic", - "created": 1707709598, - "currency": "aud", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OiqTaGkyVbTBiYe0O6Hj6zD", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OiqTaGkyVbTBiYeLv5l0zWX", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "succeeded", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Mon, 12 Feb 2024 03:46:41 GMT -- request: - method: post - uri: https://api.stripe.com/v1/charges/ch_3OiqTaGkyVbTBiYe0O6Hj6zD/refunds - body: - encoding: UTF-8 - string: amount=1000&expand[0]=charge - headers: - Content-Type: - - application/x-www-form-urlencoded - Authorization: - - Basic c2tfdGVzdF9HRlFXMnU4c2xsbmxBTzYxN2FUODFRdko6 - User-Agent: - - Stripe/v1 ActiveMerchantBindings/1.133.0 - Stripe-Version: - - '2020-08-27' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"1.133.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","publisher":"active_merchant"}' - X-Stripe-Client-User-Metadata: - - '{"ip":null}' - Stripe-Account: - - acct_1APQreGkyVbTBiYe - Connection: - - close - 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, 12 Feb 2024 03:46:42 GMT - Content-Type: - - application/json - Content-Length: - - '4547' - Connection: - - close - 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%2Fcharges%2F%3Acharge%2Frefunds; - 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: - - 5fd98021-2934-4a23-a462-2686b02d6be4 - Original-Request: - - req_GrOgrUV9vyH0dN - Request-Id: - - req_GrOgrUV9vyH0dN - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2020-08-27' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "re_3OiqTaGkyVbTBiYe0K4k5Khy", - "object": "refund", - "amount": 1000, - "balance_transaction": "txn_3OiqTaGkyVbTBiYe09TPiL12", - "charge": { - "id": "ch_3OiqTaGkyVbTBiYe0O6Hj6zD", - "object": "charge", - "amount": 1000, - "amount_captured": 1000, - "amount_refunded": 1000, - "application": null, - "application_fee": null, - "application_fee_amount": null, - "balance_transaction": "txn_3OiqTaGkyVbTBiYe0AQLBi3e", - "billing_details": { - "address": { - "city": null, - "country": null, - "line1": null, - "line2": null, - "postal_code": null, - "state": null - }, - "email": null, - "name": null, - "phone": null - }, - "calculated_statement_descriptor": "OPENFOODNETWORK", - "captured": true, - "created": 1707709599, - "currency": "aud", - "customer": null, - "description": null, - "destination": null, - "dispute": null, - "disputed": false, - "failure_balance_transaction": null, - "failure_code": null, - "failure_message": null, - "fraud_details": {}, - "invoice": null, - "livemode": false, - "metadata": {}, - "on_behalf_of": null, - "order": null, - "outcome": { - "network_status": "approved_by_network", - "reason": null, - "risk_level": "normal", - "risk_score": 13, - "seller_message": "Payment complete.", - "type": "authorized" - }, - "paid": true, - "payment_intent": "pi_3OiqTaGkyVbTBiYe0nUcBPZV", - "payment_method": "pm_1OiqTaGkyVbTBiYeLv5l0zWX", - "payment_method_details": { - "card": { - "amount_authorized": 1000, - "brand": "mastercard", - "capture_before": 1708314399, - "checks": { - "address_line1_check": null, - "address_postal_code_check": null, - "cvc_check": "pass" - }, - "country": "US", - "exp_month": 2, - "exp_year": 2025, - "extended_authorization": { - "status": "disabled" - }, - "fingerprint": "1Zr75a6zBSZLu0Zp", - "funding": "credit", - "incremental_authorization": { - "status": "unavailable" - }, - "installments": null, - "last4": "4444", - "mandate": null, - "multicapture": { - "status": "unavailable" - }, - "network": "mastercard", - "network_token": { - "used": false - }, - "overcapture": { - "maximum_amount_capturable": 1000, - "status": "unavailable" - }, - "three_d_secure": null, - "wallet": null - }, - "type": "card" - }, - "radar_options": {}, - "receipt_email": null, - "receipt_number": null, - "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xQVBRcmVHa3lWYlRCaVllKKKppq4GMgbB94RxQuw6LBajaUJ_Nzh33IT18N1M4-HhSrvYWIOIFfijUMVA2zy0iqBh8K2_OWFkLTEf", - "refunded": true, - "refunds": { - "object": "list", - "data": [ - { - "id": "re_3OiqTaGkyVbTBiYe0K4k5Khy", - "object": "refund", - "amount": 1000, - "balance_transaction": "txn_3OiqTaGkyVbTBiYe09TPiL12", - "charge": "ch_3OiqTaGkyVbTBiYe0O6Hj6zD", - "created": 1707709602, - "currency": "aud", - "destination_details": { - "card": { - "reference_status": "pending", - "reference_type": "acquirer_reference_number", - "type": "refund" - }, - "type": "card" - }, - "metadata": {}, - "payment_intent": "pi_3OiqTaGkyVbTBiYe0nUcBPZV", - "reason": null, - "receipt_number": null, - "source_transfer_reversal": null, - "status": "succeeded", - "transfer_reversal": null - } - ], - "has_more": false, - "total_count": 1, - "url": "/v1/charges/ch_3OiqTaGkyVbTBiYe0O6Hj6zD/refunds" - }, - "review": null, - "shipping": null, - "source": null, - "source_transfer": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "succeeded", - "transfer_data": null, - "transfer_group": null - }, - "created": 1707709602, - "currency": "aud", - "destination_details": { - "card": { - "reference_status": "pending", - "reference_type": "acquirer_reference_number", - "type": "refund" - }, - "type": "card" - }, - "metadata": {}, - "payment_intent": "pi_3OiqTaGkyVbTBiYe0nUcBPZV", - "reason": null, - "receipt_number": null, - "source_transfer_reversal": null, - "status": "succeeded", - "transfer_reversal": null - } - recorded_at: Mon, 12 Feb 2024 03:46:42 GMT -recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Spree_Gateway_StripeSCA/_void/with_a_voidable_payment/void_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Spree_Gateway_StripeSCA/_void/with_a_voidable_payment/void_the_payment.yml deleted file mode 100644 index 24fb9dc483..0000000000 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.2.0/Spree_Gateway_StripeSCA/_void/with_a_voidable_payment/void_the_payment.yml +++ /dev/null @@ -1,524 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: https://api.stripe.com/v1/payment_methods/pm_card_mastercard - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_bkByviWmLTQOfW","request_duration_ms":359}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.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: - - Mon, 12 Feb 2024 03:46:43 GMT - Content-Type: - - application/json - Content-Length: - - '942' - 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%2Fpayment_methods%2F%3Apayment_method; - 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' - Request-Id: - - req_XABjvmIDq8zdLB - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Non-Api-Overhead-Duration-Ms: - - '167.0' - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pm_1OiqTfGkyVbTBiYe3NHcuFzj", - "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": "mastercard", - "checks": { - "address_line1_check": null, - "address_postal_code_check": null, - "cvc_check": "unchecked" - }, - "country": "US", - "exp_month": 2, - "exp_year": 2025, - "fingerprint": "1Zr75a6zBSZLu0Zp", - "funding": "credit", - "generated_from": null, - "last4": "4444", - "networks": { - "available": [ - "mastercard" - ], - "preferred": null - }, - "three_d_secure_usage": { - "supported": true - }, - "wallet": null - }, - "created": 1707709603, - "customer": null, - "livemode": false, - "metadata": {}, - "type": "card" - } - recorded_at: Mon, 12 Feb 2024 03:46:43 GMT -- request: - method: post - uri: https://api.stripe.com/v1/payment_intents - body: - encoding: UTF-8 - string: amount=1000¤cy=aud&payment_method=pm_1OiqTfGkyVbTBiYe3NHcuFzj&payment_method_types[0]=card&capture_method=manual - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_XABjvmIDq8zdLB","request_duration_ms":484}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.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: - - Mon, 12 Feb 2024 03:46:44 GMT - Content-Type: - - application/json - Content-Length: - - '1344' - 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%2Fpayment_intents; 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: - - 5e88c180-041d-449f-821d-34f26e16ca9e - Original-Request: - - req_tQWBPCGhiMCP0g - Request-Id: - - req_tQWBPCGhiMCP0g - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Non-Api-Overhead-Duration-Ms: - - '193.0' - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OiqTgGkyVbTBiYe0de0qJ91", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OiqTgGkyVbTBiYe0de0qJ91_secret_d6ozPrnET7mJAXHuW1mZlOxB6", - "confirmation_method": "automatic", - "created": 1707709604, - "currency": "aud", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": null, - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OiqTfGkyVbTBiYe3NHcuFzj", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_confirmation", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Mon, 12 Feb 2024 03:46:44 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OiqTgGkyVbTBiYe0de0qJ91 - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.2.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_tQWBPCGhiMCP0g","request_duration_ms":509}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.2.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: - - Mon, 12 Feb 2024 03:46:44 GMT - Content-Type: - - application/json - Content-Length: - - '1344' - 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%2Fpayment_intents%2F%3Aintent; - 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' - Request-Id: - - req_3zPIl85xE98iJP - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Non-Api-Overhead-Duration-Ms: - - '63.0' - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OiqTgGkyVbTBiYe0de0qJ91", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OiqTgGkyVbTBiYe0de0qJ91_secret_d6ozPrnET7mJAXHuW1mZlOxB6", - "confirmation_method": "automatic", - "created": 1707709604, - "currency": "aud", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": null, - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OiqTfGkyVbTBiYe3NHcuFzj", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "requires_confirmation", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Mon, 12 Feb 2024 03:46:44 GMT -- request: - method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OiqTgGkyVbTBiYe0de0qJ91/cancel - body: - encoding: US-ASCII - string: '' - headers: - Content-Type: - - application/x-www-form-urlencoded - Authorization: - - Basic c2tfdGVzdF9HRlFXMnU4c2xsbmxBTzYxN2FUODFRdko6 - User-Agent: - - Stripe/v1 ActiveMerchantBindings/1.133.0 - Stripe-Version: - - '2020-08-27' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"1.133.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","publisher":"active_merchant"}' - X-Stripe-Client-User-Metadata: - - '{"ip":null}' - Connection: - - close - 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, 12 Feb 2024 03:46:45 GMT - Content-Type: - - application/json - Content-Length: - - '1508' - Connection: - - close - 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%2Fpayment_intents%2F%3Aintent%2Fcancel; - 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: - - dd6026b4-78e9-49c7-a4af-365d48f10eb8 - Original-Request: - - req_Ez0PQVQfU8IYRv - Request-Id: - - req_Ez0PQVQfU8IYRv - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2020-08-27' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OiqTgGkyVbTBiYe0de0qJ91", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": null, - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": 1707709605, - "cancellation_reason": null, - "capture_method": "manual", - "charges": { - "object": "list", - "data": [], - "has_more": false, - "total_count": 0, - "url": "/v1/charges?payment_intent=pi_3OiqTgGkyVbTBiYe0de0qJ91" - }, - "client_secret": "pi_3OiqTgGkyVbTBiYe0de0qJ91_secret_d6ozPrnET7mJAXHuW1mZlOxB6", - "confirmation_method": "automatic", - "created": 1707709604, - "currency": "aud", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": null, - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OiqTfGkyVbTBiYe3NHcuFzj", - "payment_method_configuration_details": null, - "payment_method_options": { - "card": { - "installments": null, - "mandate_options": null, - "network": null, - "request_three_d_secure": "automatic" - } - }, - "payment_method_types": [ - "card" - ], - "processing": null, - "receipt_email": null, - "review": null, - "setup_future_usage": null, - "shipping": null, - "source": null, - "statement_descriptor": null, - "statement_descriptor_suffix": null, - "status": "canceled", - "transfer_data": null, - "transfer_group": null - } - recorded_at: Mon, 12 Feb 2024 03:46:45 GMT -recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.6.0/Spree_Gateway_StripeSCA/_credit/refunds_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.8.0/Spree_Gateway_StripeSCA/_credit/refunds_the_payment.yml similarity index 73% rename from spec/fixtures/vcr_cassettes/Stripe-v10.6.0/Spree_Gateway_StripeSCA/_credit/refunds_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.8.0/Spree_Gateway_StripeSCA/_credit/refunds_the_payment.yml index aa9e288fb5..f3ee211836 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.6.0/Spree_Gateway_StripeSCA/_credit/refunds_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.8.0/Spree_Gateway_StripeSCA/_credit/refunds_the_payment.yml @@ -8,15 +8,17 @@ http_interactions: string: amount=1000¤cy=aud&payment_method=pm_card_mastercard&payment_method_types[0]=card&capture_method=automatic&confirm=true headers: User-Agent: - - Stripe/v1 RubyBindings/10.6.0 + - Stripe/v1 RubyBindings/10.8.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_PnWqcN06vWvMR9","request_duration_ms":411}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.6.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + - '{"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"}' @@ -34,7 +36,7 @@ http_interactions: Server: - nginx Date: - - Mon, 12 Feb 2024 23:40:33 GMT + - Wed, 14 Feb 2024 03:18:36 GMT Content-Type: - application/json Content-Length: @@ -59,11 +61,11 @@ 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: - - 2df83cff-6b9e-4b69-a8d6-3a29ae896132 + - 162c4776-cf5c-4796-a217-bb655e612276 Original-Request: - - req_qlmSU2gDZApvRn + - req_t5o3NvgtXE4esg Request-Id: - - req_qlmSU2gDZApvRn + - req_t5o3NvgtXE4esg Stripe-Account: - acct_1OhZ9lQQeZbvfZRJ Stripe-Should-Retry: @@ -80,7 +82,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3Oj96yQQeZbvfZRJ1mJK3wjg", + "id": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5", "object": "payment_intent", "amount": 1000, "amount_capturable": 0, @@ -94,20 +96,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "automatic", - "client_secret": "pi_3Oj96yQQeZbvfZRJ1mJK3wjg_secret_gYuztzQD3aI900vCqWTwV0Tqa", + "client_secret": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5_secret_vRIuwF8JpnLz26yrZwfV6Dw8o", "confirmation_method": "automatic", - "created": 1707781232, + "created": 1707880715, "currency": "aud", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3Oj96yQQeZbvfZRJ1eu9nqj8", + "latest_charge": "ch_3OjYzXQQeZbvfZRJ19NYrLHA", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1Oj96yQQeZbvfZRJ0rDYJTvm", + "payment_method": "pm_1OjYzXQQeZbvfZRJYMx81X2A", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -132,130 +134,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 12 Feb 2024 23:40:33 GMT + recorded_at: Wed, 14 Feb 2024 03:18:37 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_methods/pm_card_mastercard - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.6.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_qlmSU2gDZApvRn","request_duration_ms":1569}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.6.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: - - Mon, 12 Feb 2024 23:40:34 GMT - Content-Type: - - application/json - Content-Length: - - '942' - 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%2Fpayment_methods%2F%3Apayment_method; - 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' - Request-Id: - - req_080Zj6If1DAG4Q - 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": "pm_1Oj970KuuB1fWySneY4k7dE5", - "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": "mastercard", - "checks": { - "address_line1_check": null, - "address_postal_code_check": null, - "cvc_check": "unchecked" - }, - "country": "US", - "exp_month": 2, - "exp_year": 2025, - "fingerprint": "BL35fEFVcTTS5wpE", - "funding": "credit", - "generated_from": null, - "last4": "4444", - "networks": { - "available": [ - "mastercard" - ], - "preferred": null - }, - "three_d_secure_usage": { - "supported": true - }, - "wallet": null - }, - "created": 1707781234, - "customer": null, - "livemode": false, - "metadata": {}, - "type": "card" - } - recorded_at: Mon, 12 Feb 2024 23:40:34 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3Oj96yQQeZbvfZRJ1mJK3wjg + uri: https://api.stripe.com/v1/payment_intents/pi_3OjYzXQQeZbvfZRJ1j1ruUY5 body: encoding: US-ASCII string: '' @@ -286,7 +168,7 @@ http_interactions: Server: - nginx Date: - - Mon, 12 Feb 2024 23:40:35 GMT + - Wed, 14 Feb 2024 03:18:37 GMT Content-Type: - application/json Content-Length: @@ -312,7 +194,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_V4N2hQ53av2Y7Z + - req_LT0o6jALXIeEGV Stripe-Account: - acct_1OhZ9lQQeZbvfZRJ Stripe-Version: @@ -327,7 +209,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3Oj96yQQeZbvfZRJ1mJK3wjg", + "id": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5", "object": "payment_intent", "amount": 1000, "amount_capturable": 0, @@ -345,7 +227,7 @@ http_interactions: "object": "list", "data": [ { - "id": "ch_3Oj96yQQeZbvfZRJ1eu9nqj8", + "id": "ch_3OjYzXQQeZbvfZRJ19NYrLHA", "object": "charge", "amount": 1000, "amount_captured": 1000, @@ -353,7 +235,7 @@ http_interactions: "application": "", "application_fee": null, "application_fee_amount": null, - "balance_transaction": "txn_3Oj96yQQeZbvfZRJ1RsK34U6", + "balance_transaction": "txn_3OjYzXQQeZbvfZRJ1GsCEqjS", "billing_details": { "address": { "city": null, @@ -369,7 +251,7 @@ http_interactions: }, "calculated_statement_descriptor": "OFNOFNOFN", "captured": true, - "created": 1707781232, + "created": 1707880716, "currency": "aud", "customer": null, "description": null, @@ -389,13 +271,13 @@ http_interactions: "network_status": "approved_by_network", "reason": null, "risk_level": "normal", - "risk_score": 36, + "risk_score": 26, "seller_message": "Payment complete.", "type": "authorized" }, "paid": true, - "payment_intent": "pi_3Oj96yQQeZbvfZRJ1mJK3wjg", - "payment_method": "pm_1Oj96yQQeZbvfZRJ0rDYJTvm", + "payment_intent": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5", + "payment_method": "pm_1OjYzXQQeZbvfZRJYMx81X2A", "payment_method_details": { "card": { "amount_authorized": 1000, @@ -438,14 +320,14 @@ http_interactions: "radar_options": {}, "receipt_email": null, "receipt_number": null, - "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2haOWxRUWVaYnZmWlJKKPPYqq4GMgbBqrOsaAA6LBbntbfnCS4i_BCTrINWH_iO8IhhvEcUo4NzHmV6T6gBL9XSdNg-1LvMV5fe", + "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2haOWxRUWVaYnZmWlJKKI3isK4GMgY_HCUfdyE6LBZd0oRsqmQJIXTqN-eOQDNIrEI0HnrxkpbbvqNdWZiAD7qGeAol3jjYdokB", "refunded": false, "refunds": { "object": "list", "data": [], "has_more": false, "total_count": 0, - "url": "/v1/charges/ch_3Oj96yQQeZbvfZRJ1eu9nqj8/refunds" + "url": "/v1/charges/ch_3OjYzXQQeZbvfZRJ19NYrLHA/refunds" }, "review": null, "shipping": null, @@ -460,22 +342,22 @@ http_interactions: ], "has_more": false, "total_count": 1, - "url": "/v1/charges?payment_intent=pi_3Oj96yQQeZbvfZRJ1mJK3wjg" + "url": "/v1/charges?payment_intent=pi_3OjYzXQQeZbvfZRJ1j1ruUY5" }, - "client_secret": "pi_3Oj96yQQeZbvfZRJ1mJK3wjg_secret_gYuztzQD3aI900vCqWTwV0Tqa", + "client_secret": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5_secret_vRIuwF8JpnLz26yrZwfV6Dw8o", "confirmation_method": "automatic", - "created": 1707781232, + "created": 1707880715, "currency": "aud", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3Oj96yQQeZbvfZRJ1eu9nqj8", + "latest_charge": "ch_3OjYzXQQeZbvfZRJ19NYrLHA", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1Oj96yQQeZbvfZRJ0rDYJTvm", + "payment_method": "pm_1OjYzXQQeZbvfZRJYMx81X2A", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -500,10 +382,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 12 Feb 2024 23:40:35 GMT + recorded_at: Wed, 14 Feb 2024 03:18:37 GMT - request: method: post - uri: https://api.stripe.com/v1/charges/ch_3Oj96yQQeZbvfZRJ1eu9nqj8/refunds + uri: https://api.stripe.com/v1/charges/ch_3OjYzXQQeZbvfZRJ19NYrLHA/refunds body: encoding: UTF-8 string: amount=1000&expand[0]=charge @@ -536,7 +418,7 @@ http_interactions: Server: - nginx Date: - - Mon, 12 Feb 2024 23:40:37 GMT + - Wed, 14 Feb 2024 03:18:38 GMT Content-Type: - application/json Content-Length: @@ -562,11 +444,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 45259ce6-403c-4e58-814e-f5d9a8408b20 + - e56daa83-ded4-4bcb-870d-92fffe95b1d3 Original-Request: - - req_YAl5fRQ21daQPA + - req_xesaGuCPCy5q9O Request-Id: - - req_YAl5fRQ21daQPA + - req_xesaGuCPCy5q9O Stripe-Account: - acct_1OhZ9lQQeZbvfZRJ Stripe-Should-Retry: @@ -583,12 +465,12 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "re_3Oj96yQQeZbvfZRJ1g0CJ9FL", + "id": "re_3OjYzXQQeZbvfZRJ1mvEuIT9", "object": "refund", "amount": 1000, - "balance_transaction": "txn_3Oj96yQQeZbvfZRJ1jHrLFL1", + "balance_transaction": "txn_3OjYzXQQeZbvfZRJ1Mrm6k4L", "charge": { - "id": "ch_3Oj96yQQeZbvfZRJ1eu9nqj8", + "id": "ch_3OjYzXQQeZbvfZRJ19NYrLHA", "object": "charge", "amount": 1000, "amount_captured": 1000, @@ -596,7 +478,7 @@ http_interactions: "application": "", "application_fee": null, "application_fee_amount": null, - "balance_transaction": "txn_3Oj96yQQeZbvfZRJ1RsK34U6", + "balance_transaction": "txn_3OjYzXQQeZbvfZRJ1GsCEqjS", "billing_details": { "address": { "city": null, @@ -612,7 +494,7 @@ http_interactions: }, "calculated_statement_descriptor": "OFNOFNOFN", "captured": true, - "created": 1707781232, + "created": 1707880716, "currency": "aud", "customer": null, "description": null, @@ -632,13 +514,13 @@ http_interactions: "network_status": "approved_by_network", "reason": null, "risk_level": "normal", - "risk_score": 36, + "risk_score": 26, "seller_message": "Payment complete.", "type": "authorized" }, "paid": true, - "payment_intent": "pi_3Oj96yQQeZbvfZRJ1mJK3wjg", - "payment_method": "pm_1Oj96yQQeZbvfZRJ0rDYJTvm", + "payment_intent": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5", + "payment_method": "pm_1OjYzXQQeZbvfZRJYMx81X2A", "payment_method_details": { "card": { "amount_authorized": 1000, @@ -681,18 +563,18 @@ http_interactions: "radar_options": {}, "receipt_email": null, "receipt_number": null, - "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2haOWxRUWVaYnZmWlJKKPTYqq4GMgZQqAj4ctc6LBbgm76DRSrCQ4pX8VSrXuiayuVxdn1a0v3rX62vwWWKBuWFTGIKRS5Rfctx", + "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2haOWxRUWVaYnZmWlJKKI7isK4GMgaV5COlGVo6LBYjTJOdJa9CuJnMR5Eg_gBt7975GIO67Zbbfrct_HakXl5lNGalmw-bF_E4", "refunded": true, "refunds": { "object": "list", "data": [ { - "id": "re_3Oj96yQQeZbvfZRJ1g0CJ9FL", + "id": "re_3OjYzXQQeZbvfZRJ1mvEuIT9", "object": "refund", "amount": 1000, - "balance_transaction": "txn_3Oj96yQQeZbvfZRJ1jHrLFL1", - "charge": "ch_3Oj96yQQeZbvfZRJ1eu9nqj8", - "created": 1707781236, + "balance_transaction": "txn_3OjYzXQQeZbvfZRJ1Mrm6k4L", + "charge": "ch_3OjYzXQQeZbvfZRJ19NYrLHA", + "created": 1707880718, "currency": "aud", "destination_details": { "card": { @@ -703,7 +585,7 @@ http_interactions: "type": "card" }, "metadata": {}, - "payment_intent": "pi_3Oj96yQQeZbvfZRJ1mJK3wjg", + "payment_intent": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5", "reason": null, "receipt_number": null, "source_transfer_reversal": null, @@ -713,7 +595,7 @@ http_interactions: ], "has_more": false, "total_count": 1, - "url": "/v1/charges/ch_3Oj96yQQeZbvfZRJ1eu9nqj8/refunds" + "url": "/v1/charges/ch_3OjYzXQQeZbvfZRJ19NYrLHA/refunds" }, "review": null, "shipping": null, @@ -725,7 +607,7 @@ http_interactions: "transfer_data": null, "transfer_group": null }, - "created": 1707781236, + "created": 1707880718, "currency": "aud", "destination_details": { "card": { @@ -736,12 +618,12 @@ http_interactions: "type": "card" }, "metadata": {}, - "payment_intent": "pi_3Oj96yQQeZbvfZRJ1mJK3wjg", + "payment_intent": "pi_3OjYzXQQeZbvfZRJ1j1ruUY5", "reason": null, "receipt_number": null, "source_transfer_reversal": null, "status": "succeeded", "transfer_reversal": null } - recorded_at: Mon, 12 Feb 2024 23:40:37 GMT + recorded_at: Wed, 14 Feb 2024 03:18:39 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.6.0/Spree_Gateway_StripeSCA/_void/with_a_confirmed_payment/refunds_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.8.0/Spree_Gateway_StripeSCA/_void/with_a_confirmed_payment/refunds_the_payment.yml similarity index 86% rename from spec/fixtures/vcr_cassettes/Stripe-v10.6.0/Spree_Gateway_StripeSCA/_void/with_a_confirmed_payment/refunds_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.8.0/Spree_Gateway_StripeSCA/_void/with_a_confirmed_payment/refunds_the_payment.yml index 91615dbb4a..9b4ad95685 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.6.0/Spree_Gateway_StripeSCA/_void/with_a_confirmed_payment/refunds_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.8.0/Spree_Gateway_StripeSCA/_void/with_a_confirmed_payment/refunds_the_payment.yml @@ -8,15 +8,17 @@ http_interactions: string: amount=1000¤cy=aud&payment_method=pm_card_mastercard&payment_method_types[0]=card&capture_method=automatic&confirm=true headers: User-Agent: - - Stripe/v1 RubyBindings/10.6.0 + - Stripe/v1 RubyBindings/10.8.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded + X-Stripe-Client-Telemetry: + - '{"last_request_metrics":{"request_id":"req_RQ4tnyZMxaTrfg","request_duration_ms":1}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.6.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + - '{"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"}' @@ -34,7 +36,7 @@ http_interactions: Server: - nginx Date: - - Mon, 12 Feb 2024 22:53:08 GMT + - Wed, 14 Feb 2024 03:18:29 GMT Content-Type: - application/json Content-Length: @@ -59,11 +61,11 @@ 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: - - 9f9ede9d-96ac-4441-b545-e1eb438336d2 + - e865bd69-4374-4e2e-9542-96af5f6daab7 Original-Request: - - req_lB6oA68zTMJrpJ + - req_SJe2N6YBjv0snw Request-Id: - - req_lB6oA68zTMJrpJ + - req_SJe2N6YBjv0snw Stripe-Account: - acct_1OhZ9lQQeZbvfZRJ Stripe-Should-Retry: @@ -80,7 +82,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3Oj8N5QQeZbvfZRJ0DWbfoMx", + "id": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt", "object": "payment_intent", "amount": 1000, "amount_capturable": 0, @@ -94,20 +96,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "automatic", - "client_secret": "pi_3Oj8N5QQeZbvfZRJ0DWbfoMx_secret_nvjdOSvBf3LuhqkJsaRlmiouk", + "client_secret": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt_secret_DDNSlzw1M5FiivpZsr8w1C9Pq", "confirmation_method": "automatic", - "created": 1707778387, + "created": 1707880708, "currency": "aud", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3Oj8N5QQeZbvfZRJ0jNdFIT8", + "latest_charge": "ch_3OjYzQQQeZbvfZRJ1agdI8ZG", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1Oj8N5QQeZbvfZRJQ6Qh4CtB", + "payment_method": "pm_1OjYzQQQeZbvfZRJevczQ3ja", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -132,7 +134,7 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 12 Feb 2024 22:53:09 GMT + recorded_at: Wed, 14 Feb 2024 03:18:29 GMT - request: method: get uri: https://api.stripe.com/v1/payment_methods/pm_card_mastercard @@ -141,17 +143,17 @@ http_interactions: string: '' headers: User-Agent: - - Stripe/v1 RubyBindings/10.6.0 + - Stripe/v1 RubyBindings/10.8.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_lB6oA68zTMJrpJ","request_duration_ms":1832}}' + - '{"last_request_metrics":{"request_id":"req_SJe2N6YBjv0snw","request_duration_ms":1697}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.6.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + - '{"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"}' @@ -167,7 +169,7 @@ http_interactions: Server: - nginx Date: - - Mon, 12 Feb 2024 22:53:11 GMT + - Wed, 14 Feb 2024 03:18:30 GMT Content-Type: - application/json Content-Length: @@ -193,7 +195,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_MPSEbWRjRHc1xo + - req_5rWKkeAfNF1e2K Stripe-Version: - '2023-10-16' Vary: @@ -206,7 +208,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1Oj8N8KuuB1fWySnY2lqbAGk", + "id": "pm_1OjYzSKuuB1fWySn6gTcoyG9", "object": "payment_method", "billing_details": { "address": { @@ -246,32 +248,32 @@ http_interactions: }, "wallet": null }, - "created": 1707778390, + "created": 1707880710, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 12 Feb 2024 22:53:11 GMT + recorded_at: Wed, 14 Feb 2024 03:18:30 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3Oj8N5QQeZbvfZRJ0DWbfoMx + uri: https://api.stripe.com/v1/payment_intents/pi_3OjYzQQQeZbvfZRJ1ZfpFZtt body: encoding: US-ASCII string: '' headers: User-Agent: - - Stripe/v1 RubyBindings/10.6.0 + - Stripe/v1 RubyBindings/10.8.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_MPSEbWRjRHc1xo","request_duration_ms":1078}}' + - '{"last_request_metrics":{"request_id":"req_5rWKkeAfNF1e2K","request_duration_ms":454}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.6.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + - '{"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"}' @@ -289,7 +291,7 @@ http_interactions: Server: - nginx Date: - - Mon, 12 Feb 2024 22:53:11 GMT + - Wed, 14 Feb 2024 03:18:30 GMT Content-Type: - application/json Content-Length: @@ -315,7 +317,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_kqqjMU3wRPfz7h + - req_wxI46rAQyl4SSe Stripe-Account: - acct_1OhZ9lQQeZbvfZRJ Stripe-Version: @@ -330,7 +332,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3Oj8N5QQeZbvfZRJ0DWbfoMx", + "id": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt", "object": "payment_intent", "amount": 1000, "amount_capturable": 0, @@ -344,20 +346,20 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "automatic", - "client_secret": "pi_3Oj8N5QQeZbvfZRJ0DWbfoMx_secret_nvjdOSvBf3LuhqkJsaRlmiouk", + "client_secret": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt_secret_DDNSlzw1M5FiivpZsr8w1C9Pq", "confirmation_method": "automatic", - "created": 1707778387, + "created": 1707880708, "currency": "aud", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3Oj8N5QQeZbvfZRJ0jNdFIT8", + "latest_charge": "ch_3OjYzQQQeZbvfZRJ1agdI8ZG", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1Oj8N5QQeZbvfZRJQ6Qh4CtB", + "payment_method": "pm_1OjYzQQQeZbvfZRJevczQ3ja", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -382,10 +384,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 12 Feb 2024 22:53:11 GMT + recorded_at: Wed, 14 Feb 2024 03:18:30 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3Oj8N5QQeZbvfZRJ0DWbfoMx + uri: https://api.stripe.com/v1/payment_intents/pi_3OjYzQQQeZbvfZRJ1ZfpFZtt body: encoding: US-ASCII string: '' @@ -416,11 +418,11 @@ http_interactions: Server: - nginx Date: - - Mon, 12 Feb 2024 22:53:12 GMT + - Wed, 14 Feb 2024 03:18:31 GMT Content-Type: - application/json Content-Length: - - '5159' + - '5160' Connection: - close Access-Control-Allow-Credentials: @@ -442,7 +444,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_2ZdR6OrOajgOec + - req_8eT2GT3KhocGtE Stripe-Account: - acct_1OhZ9lQQeZbvfZRJ Stripe-Version: @@ -457,7 +459,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3Oj8N5QQeZbvfZRJ0DWbfoMx", + "id": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt", "object": "payment_intent", "amount": 1000, "amount_capturable": 0, @@ -475,7 +477,7 @@ http_interactions: "object": "list", "data": [ { - "id": "ch_3Oj8N5QQeZbvfZRJ0jNdFIT8", + "id": "ch_3OjYzQQQeZbvfZRJ1agdI8ZG", "object": "charge", "amount": 1000, "amount_captured": 1000, @@ -483,7 +485,7 @@ http_interactions: "application": "", "application_fee": null, "application_fee_amount": null, - "balance_transaction": "txn_3Oj8N5QQeZbvfZRJ0VVf4rtO", + "balance_transaction": "txn_3OjYzQQQeZbvfZRJ1rzq7WJf", "billing_details": { "address": { "city": null, @@ -499,7 +501,7 @@ http_interactions: }, "calculated_statement_descriptor": "OFNOFNOFN", "captured": true, - "created": 1707778388, + "created": 1707880708, "currency": "aud", "customer": null, "description": null, @@ -519,13 +521,13 @@ http_interactions: "network_status": "approved_by_network", "reason": null, "risk_level": "normal", - "risk_score": 0, + "risk_score": 12, "seller_message": "Payment complete.", "type": "authorized" }, "paid": true, - "payment_intent": "pi_3Oj8N5QQeZbvfZRJ0DWbfoMx", - "payment_method": "pm_1Oj8N5QQeZbvfZRJQ6Qh4CtB", + "payment_intent": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt", + "payment_method": "pm_1OjYzQQQeZbvfZRJevczQ3ja", "payment_method_details": { "card": { "amount_authorized": 1000, @@ -568,14 +570,14 @@ http_interactions: "radar_options": {}, "receipt_email": null, "receipt_number": null, - "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2haOWxRUWVaYnZmWlJKKNjCqq4GMgZz3nu_-qs6LBbP4HIvOO9vohwzYRZA73lI9cjv8LnAaahU-8StFSQ0AW4v1eUKfrTSCc8c", + "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2haOWxRUWVaYnZmWlJKKIfisK4GMgb5-TOPrLE6LBb_wjrOeEWzijpNMNdyZOt4LrIYtnRo4ZjRMaX-NqxyTdMnnWcQDt7-EAlo", "refunded": false, "refunds": { "object": "list", "data": [], "has_more": false, "total_count": 0, - "url": "/v1/charges/ch_3Oj8N5QQeZbvfZRJ0jNdFIT8/refunds" + "url": "/v1/charges/ch_3OjYzQQQeZbvfZRJ1agdI8ZG/refunds" }, "review": null, "shipping": null, @@ -590,22 +592,22 @@ http_interactions: ], "has_more": false, "total_count": 1, - "url": "/v1/charges?payment_intent=pi_3Oj8N5QQeZbvfZRJ0DWbfoMx" + "url": "/v1/charges?payment_intent=pi_3OjYzQQQeZbvfZRJ1ZfpFZtt" }, - "client_secret": "pi_3Oj8N5QQeZbvfZRJ0DWbfoMx_secret_nvjdOSvBf3LuhqkJsaRlmiouk", + "client_secret": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt_secret_DDNSlzw1M5FiivpZsr8w1C9Pq", "confirmation_method": "automatic", - "created": 1707778387, + "created": 1707880708, "currency": "aud", "customer": null, "description": null, "invoice": null, "last_payment_error": null, - "latest_charge": "ch_3Oj8N5QQeZbvfZRJ0jNdFIT8", + "latest_charge": "ch_3OjYzQQQeZbvfZRJ1agdI8ZG", "livemode": false, "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1Oj8N5QQeZbvfZRJQ6Qh4CtB", + "payment_method": "pm_1OjYzQQQeZbvfZRJevczQ3ja", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -630,10 +632,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 12 Feb 2024 22:53:12 GMT + recorded_at: Wed, 14 Feb 2024 03:18:31 GMT - request: method: post - uri: https://api.stripe.com/v1/charges/ch_3Oj8N5QQeZbvfZRJ0jNdFIT8/refunds + uri: https://api.stripe.com/v1/charges/ch_3OjYzQQQeZbvfZRJ1agdI8ZG/refunds body: encoding: UTF-8 string: amount=1000&expand[0]=charge @@ -666,11 +668,11 @@ http_interactions: Server: - nginx Date: - - Mon, 12 Feb 2024 22:53:13 GMT + - Wed, 14 Feb 2024 03:18:32 GMT Content-Type: - application/json Content-Length: - - '4535' + - '4536' Connection: - close Access-Control-Allow-Credentials: @@ -692,11 +694,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - cf4f970c-f6b3-4e76-b233-4eab0e385c71 + - c5612d0a-b27b-4611-8571-df184dfb4883 Original-Request: - - req_38Iu12IYZJwYz3 + - req_GSLFwegws0fu5O Request-Id: - - req_38Iu12IYZJwYz3 + - req_GSLFwegws0fu5O Stripe-Account: - acct_1OhZ9lQQeZbvfZRJ Stripe-Should-Retry: @@ -713,12 +715,12 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "re_3Oj8N5QQeZbvfZRJ0x3xrJep", + "id": "re_3OjYzQQQeZbvfZRJ1XLkiMNb", "object": "refund", "amount": 1000, - "balance_transaction": "txn_3Oj8N5QQeZbvfZRJ0446g84e", + "balance_transaction": "txn_3OjYzQQQeZbvfZRJ1END2EXD", "charge": { - "id": "ch_3Oj8N5QQeZbvfZRJ0jNdFIT8", + "id": "ch_3OjYzQQQeZbvfZRJ1agdI8ZG", "object": "charge", "amount": 1000, "amount_captured": 1000, @@ -726,7 +728,7 @@ http_interactions: "application": "", "application_fee": null, "application_fee_amount": null, - "balance_transaction": "txn_3Oj8N5QQeZbvfZRJ0VVf4rtO", + "balance_transaction": "txn_3OjYzQQQeZbvfZRJ1rzq7WJf", "billing_details": { "address": { "city": null, @@ -742,7 +744,7 @@ http_interactions: }, "calculated_statement_descriptor": "OFNOFNOFN", "captured": true, - "created": 1707778388, + "created": 1707880708, "currency": "aud", "customer": null, "description": null, @@ -762,13 +764,13 @@ http_interactions: "network_status": "approved_by_network", "reason": null, "risk_level": "normal", - "risk_score": 0, + "risk_score": 12, "seller_message": "Payment complete.", "type": "authorized" }, "paid": true, - "payment_intent": "pi_3Oj8N5QQeZbvfZRJ0DWbfoMx", - "payment_method": "pm_1Oj8N5QQeZbvfZRJQ6Qh4CtB", + "payment_intent": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt", + "payment_method": "pm_1OjYzQQQeZbvfZRJevczQ3ja", "payment_method_details": { "card": { "amount_authorized": 1000, @@ -811,18 +813,18 @@ http_interactions: "radar_options": {}, "receipt_email": null, "receipt_number": null, - "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2haOWxRUWVaYnZmWlJKKNnCqq4GMgYb2YoorMU6LBZPiModP9pA5IE5ehBQl5Kwr5IwrCYjcU1OlRxOtlsEdsxBrK09r38JrH1o", + "receipt_url": "https://pay.stripe.com/receipts/payment/CAcaFwoVYWNjdF8xT2haOWxRUWVaYnZmWlJKKIjisK4GMgZypb2pB6g6LBbF0B7_4nXvwqexHymit0cH1Fo3Kia6S2-A33YZ7GK8vHCldPf3XtBchtVJ", "refunded": true, "refunds": { "object": "list", "data": [ { - "id": "re_3Oj8N5QQeZbvfZRJ0x3xrJep", + "id": "re_3OjYzQQQeZbvfZRJ1XLkiMNb", "object": "refund", "amount": 1000, - "balance_transaction": "txn_3Oj8N5QQeZbvfZRJ0446g84e", - "charge": "ch_3Oj8N5QQeZbvfZRJ0jNdFIT8", - "created": 1707778392, + "balance_transaction": "txn_3OjYzQQQeZbvfZRJ1END2EXD", + "charge": "ch_3OjYzQQQeZbvfZRJ1agdI8ZG", + "created": 1707880712, "currency": "aud", "destination_details": { "card": { @@ -833,7 +835,7 @@ http_interactions: "type": "card" }, "metadata": {}, - "payment_intent": "pi_3Oj8N5QQeZbvfZRJ0DWbfoMx", + "payment_intent": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt", "reason": null, "receipt_number": null, "source_transfer_reversal": null, @@ -843,7 +845,7 @@ http_interactions: ], "has_more": false, "total_count": 1, - "url": "/v1/charges/ch_3Oj8N5QQeZbvfZRJ0jNdFIT8/refunds" + "url": "/v1/charges/ch_3OjYzQQQeZbvfZRJ1agdI8ZG/refunds" }, "review": null, "shipping": null, @@ -855,7 +857,7 @@ http_interactions: "transfer_data": null, "transfer_group": null }, - "created": 1707778392, + "created": 1707880712, "currency": "aud", "destination_details": { "card": { @@ -866,12 +868,12 @@ http_interactions: "type": "card" }, "metadata": {}, - "payment_intent": "pi_3Oj8N5QQeZbvfZRJ0DWbfoMx", + "payment_intent": "pi_3OjYzQQQeZbvfZRJ1ZfpFZtt", "reason": null, "receipt_number": null, "source_transfer_reversal": null, "status": "succeeded", "transfer_reversal": null } - recorded_at: Mon, 12 Feb 2024 22:53:13 GMT + recorded_at: Wed, 14 Feb 2024 03:18:32 GMT recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.6.0/Spree_Gateway_StripeSCA/_void/with_a_voidable_payment/void_the_payment.yml b/spec/fixtures/vcr_cassettes/Stripe-v10.8.0/Spree_Gateway_StripeSCA/_void/with_a_voidable_payment/void_the_payment.yml similarity index 87% rename from spec/fixtures/vcr_cassettes/Stripe-v10.6.0/Spree_Gateway_StripeSCA/_void/with_a_voidable_payment/void_the_payment.yml rename to spec/fixtures/vcr_cassettes/Stripe-v10.8.0/Spree_Gateway_StripeSCA/_void/with_a_voidable_payment/void_the_payment.yml index f8eb537ca2..9794336c76 100644 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.6.0/Spree_Gateway_StripeSCA/_void/with_a_voidable_payment/void_the_payment.yml +++ b/spec/fixtures/vcr_cassettes/Stripe-v10.8.0/Spree_Gateway_StripeSCA/_void/with_a_voidable_payment/void_the_payment.yml @@ -8,17 +8,17 @@ http_interactions: string: amount=1000¤cy=aud&payment_method=pm_card_mastercard&payment_method_types[0]=card&capture_method=manual headers: User-Agent: - - Stripe/v1 RubyBindings/10.6.0 + - Stripe/v1 RubyBindings/10.8.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_kqqjMU3wRPfz7h","request_duration_ms":485}}' + - '{"last_request_metrics":{"request_id":"req_wxI46rAQyl4SSe","request_duration_ms":422}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.6.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + - '{"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"}' @@ -36,7 +36,7 @@ http_interactions: Server: - nginx Date: - - Mon, 12 Feb 2024 22:53:14 GMT + - Wed, 14 Feb 2024 03:18:33 GMT Content-Type: - application/json Content-Length: @@ -61,11 +61,11 @@ 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: - - 816e3630-03dc-4f3a-b4c6-5e88e3322536 + - c58ef797-9bab-401e-ab3d-4df1bd2507d4 Original-Request: - - req_6jrnUl6aZNQxLk + - req_RHfHf6SxOfQFW5 Request-Id: - - req_6jrnUl6aZNQxLk + - req_RHfHf6SxOfQFW5 Stripe-Account: - acct_1OhZ9lQQeZbvfZRJ Stripe-Should-Retry: @@ -82,7 +82,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3Oj8NCQQeZbvfZRJ1ahXc6sm", + "id": "pi_3OjYzVQQeZbvfZRJ0e0x2sws", "object": "payment_intent", "amount": 1000, "amount_capturable": 0, @@ -96,9 +96,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3Oj8NCQQeZbvfZRJ1ahXc6sm_secret_S6BFb7CunuRZPNoXb2GSmSUsh", + "client_secret": "pi_3OjYzVQQeZbvfZRJ0e0x2sws_secret_p1V0dEyb3qeHYwrXdTzNu9cG8", "confirmation_method": "automatic", - "created": 1707778394, + "created": 1707880713, "currency": "aud", "customer": null, "description": null, @@ -109,7 +109,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1Oj8NCQQeZbvfZRJUrdNo9RL", + "payment_method": "pm_1OjYzVQQeZbvfZRJl4Sv9a5X", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -134,7 +134,7 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 12 Feb 2024 22:53:14 GMT + recorded_at: Wed, 14 Feb 2024 03:18:33 GMT - request: method: get uri: https://api.stripe.com/v1/payment_methods/pm_card_mastercard @@ -143,17 +143,17 @@ http_interactions: string: '' headers: User-Agent: - - Stripe/v1 RubyBindings/10.6.0 + - Stripe/v1 RubyBindings/10.8.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_6jrnUl6aZNQxLk","request_duration_ms":572}}' + - '{"last_request_metrics":{"request_id":"req_RHfHf6SxOfQFW5","request_duration_ms":536}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.6.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + - '{"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"}' @@ -169,7 +169,7 @@ http_interactions: Server: - nginx Date: - - Mon, 12 Feb 2024 22:53:15 GMT + - Wed, 14 Feb 2024 03:18:34 GMT Content-Type: - application/json Content-Length: @@ -195,7 +195,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_fiClXhKKwaSAmy + - req_4RtNXuFemQOv6L Stripe-Version: - '2023-10-16' Vary: @@ -208,7 +208,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pm_1Oj8NDKuuB1fWySnzaxDjTO2", + "id": "pm_1OjYzWKuuB1fWySneavPZ5WZ", "object": "payment_method", "billing_details": { "address": { @@ -248,32 +248,32 @@ http_interactions: }, "wallet": null }, - "created": 1707778395, + "created": 1707880714, "customer": null, "livemode": false, "metadata": {}, "type": "card" } - recorded_at: Mon, 12 Feb 2024 22:53:15 GMT + recorded_at: Wed, 14 Feb 2024 03:18:34 GMT - request: method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3Oj8NCQQeZbvfZRJ1ahXc6sm + uri: https://api.stripe.com/v1/payment_intents/pi_3OjYzVQQeZbvfZRJ0e0x2sws body: encoding: US-ASCII string: '' headers: User-Agent: - - Stripe/v1 RubyBindings/10.6.0 + - Stripe/v1 RubyBindings/10.8.0 Authorization: - Bearer Content-Type: - application/x-www-form-urlencoded X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_fiClXhKKwaSAmy","request_duration_ms":535}}' + - '{"last_request_metrics":{"request_id":"req_4RtNXuFemQOv6L","request_duration_ms":463}}' Stripe-Version: - '2023-10-16' X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.6.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux + - '{"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"}' @@ -291,7 +291,7 @@ http_interactions: Server: - nginx Date: - - Mon, 12 Feb 2024 22:53:15 GMT + - Wed, 14 Feb 2024 03:18:34 GMT Content-Type: - application/json Content-Length: @@ -317,7 +317,7 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Request-Id: - - req_mclrPggiyKYO9S + - req_PnWqcN06vWvMR9 Stripe-Account: - acct_1OhZ9lQQeZbvfZRJ Stripe-Version: @@ -332,7 +332,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3Oj8NCQQeZbvfZRJ1ahXc6sm", + "id": "pi_3OjYzVQQeZbvfZRJ0e0x2sws", "object": "payment_intent", "amount": 1000, "amount_capturable": 0, @@ -346,9 +346,9 @@ http_interactions: "canceled_at": null, "cancellation_reason": null, "capture_method": "manual", - "client_secret": "pi_3Oj8NCQQeZbvfZRJ1ahXc6sm_secret_S6BFb7CunuRZPNoXb2GSmSUsh", + "client_secret": "pi_3OjYzVQQeZbvfZRJ0e0x2sws_secret_p1V0dEyb3qeHYwrXdTzNu9cG8", "confirmation_method": "automatic", - "created": 1707778394, + "created": 1707880713, "currency": "aud", "customer": null, "description": null, @@ -359,7 +359,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1Oj8NCQQeZbvfZRJUrdNo9RL", + "payment_method": "pm_1OjYzVQQeZbvfZRJl4Sv9a5X", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -384,10 +384,10 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 12 Feb 2024 22:53:15 GMT + recorded_at: Wed, 14 Feb 2024 03:18:34 GMT - request: method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3Oj8NCQQeZbvfZRJ1ahXc6sm/cancel + uri: https://api.stripe.com/v1/payment_intents/pi_3OjYzVQQeZbvfZRJ0e0x2sws/cancel body: encoding: US-ASCII string: '' @@ -420,7 +420,7 @@ http_interactions: Server: - nginx Date: - - Mon, 12 Feb 2024 22:53:16 GMT + - Wed, 14 Feb 2024 03:18:35 GMT Content-Type: - application/json Content-Length: @@ -446,11 +446,11 @@ http_interactions: 'none'; frame-ancestors 'none'; img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' Idempotency-Key: - - 3e00f853-05da-4290-86df-fad9bca9d5ea + - c527367d-ab3f-4141-9d50-2dadee2eb10d Original-Request: - - req_clYJJBeUWvA3Fe + - req_mgU0tpR5EE5dow Request-Id: - - req_clYJJBeUWvA3Fe + - req_mgU0tpR5EE5dow Stripe-Account: - acct_1OhZ9lQQeZbvfZRJ Stripe-Should-Retry: @@ -467,7 +467,7 @@ http_interactions: encoding: UTF-8 string: |- { - "id": "pi_3Oj8NCQQeZbvfZRJ1ahXc6sm", + "id": "pi_3OjYzVQQeZbvfZRJ0e0x2sws", "object": "payment_intent", "amount": 1000, "amount_capturable": 0, @@ -478,7 +478,7 @@ http_interactions: "application": "", "application_fee_amount": null, "automatic_payment_methods": null, - "canceled_at": 1707778396, + "canceled_at": 1707880715, "cancellation_reason": null, "capture_method": "manual", "charges": { @@ -486,11 +486,11 @@ http_interactions: "data": [], "has_more": false, "total_count": 0, - "url": "/v1/charges?payment_intent=pi_3Oj8NCQQeZbvfZRJ1ahXc6sm" + "url": "/v1/charges?payment_intent=pi_3OjYzVQQeZbvfZRJ0e0x2sws" }, - "client_secret": "pi_3Oj8NCQQeZbvfZRJ1ahXc6sm_secret_S6BFb7CunuRZPNoXb2GSmSUsh", + "client_secret": "pi_3OjYzVQQeZbvfZRJ0e0x2sws_secret_p1V0dEyb3qeHYwrXdTzNu9cG8", "confirmation_method": "automatic", - "created": 1707778394, + "created": 1707880713, "currency": "aud", "customer": null, "description": null, @@ -501,7 +501,7 @@ http_interactions: "metadata": {}, "next_action": null, "on_behalf_of": null, - "payment_method": "pm_1Oj8NCQQeZbvfZRJUrdNo9RL", + "payment_method": "pm_1OjYzVQQeZbvfZRJl4Sv9a5X", "payment_method_configuration_details": null, "payment_method_options": { "card": { @@ -526,5 +526,5 @@ http_interactions: "transfer_data": null, "transfer_group": null } - recorded_at: Mon, 12 Feb 2024 22:53:16 GMT + recorded_at: Wed, 14 Feb 2024 03:18:35 GMT recorded_with: VCR 6.2.0