diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.8.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 deleted file mode 100644 index 39f6ae4239..0000000000 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.8.0/Spree_Gateway_StripeSCA/_credit/refunds_the_payment.yml +++ /dev/null @@ -1,834 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.stripe.com/v1/accounts - body: - encoding: UTF-8 - string: type=standard&country=AU&email=carrot.producer%40example.com - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.8.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.8.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 5.15.0-92-generic (buildd@lcy02-amd64-002) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) - 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon - Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Sun, 18 Feb 2024 23:18:55 GMT - Content-Type: - - application/json - Content-Length: - - '3046' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Faccounts; block-all-mixed-content; - default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; - img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' - Idempotency-Key: - - a9283eb3-7b80-4b48-b83f-08c42cabd937 - Original-Request: - - req_Wbr0VoksDJMRSz - Request-Id: - - req_Wbr0VoksDJMRSz - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "acct_1OlJdK3P50uNgD3L", - "object": "account", - "business_profile": { - "annual_revenue": null, - "estimated_worker_count": null, - "mcc": null, - "name": null, - "product_description": null, - "support_address": null, - "support_email": null, - "support_phone": null, - "support_url": null, - "url": null - }, - "business_type": null, - "capabilities": {}, - "charges_enabled": false, - "controller": { - "is_controller": true, - "type": "application" - }, - "country": "AU", - "created": 1708298335, - "default_currency": "aud", - "details_submitted": false, - "email": "carrot.producer@example.com", - "external_accounts": { - "object": "list", - "data": [], - "has_more": false, - "total_count": 0, - "url": "/v1/accounts/acct_1OlJdK3P50uNgD3L/external_accounts" - }, - "future_requirements": { - "alternatives": [], - "current_deadline": null, - "currently_due": [], - "disabled_reason": null, - "errors": [], - "eventually_due": [], - "past_due": [], - "pending_verification": [] - }, - "metadata": {}, - "payouts_enabled": false, - "requirements": { - "alternatives": [], - "current_deadline": null, - "currently_due": [ - "business_profile.product_description", - "business_profile.support_phone", - "business_profile.url", - "external_account", - "tos_acceptance.date", - "tos_acceptance.ip" - ], - "disabled_reason": "requirements.past_due", - "errors": [], - "eventually_due": [ - "business_profile.product_description", - "business_profile.support_phone", - "business_profile.url", - "external_account", - "tos_acceptance.date", - "tos_acceptance.ip" - ], - "past_due": [ - "external_account", - "tos_acceptance.date", - "tos_acceptance.ip" - ], - "pending_verification": [] - }, - "settings": { - "bacs_debit_payments": { - "display_name": null, - "service_user_number": null - }, - "branding": { - "icon": null, - "logo": null, - "primary_color": null, - "secondary_color": null - }, - "card_issuing": { - "tos_acceptance": { - "date": null, - "ip": null - } - }, - "card_payments": { - "decline_on": { - "avs_failure": false, - "cvc_failure": false - }, - "statement_descriptor_prefix": null, - "statement_descriptor_prefix_kana": null, - "statement_descriptor_prefix_kanji": null - }, - "dashboard": { - "display_name": null, - "timezone": "Etc/UTC" - }, - "invoices": { - "default_account_tax_ids": null - }, - "payments": { - "statement_descriptor": null, - "statement_descriptor_kana": null, - "statement_descriptor_kanji": null - }, - "payouts": { - "debit_negative_balances": true, - "schedule": { - "delay_days": 2, - "interval": "daily" - }, - "statement_descriptor": null - }, - "sepa_debit_payments": {} - }, - "tos_acceptance": { - "date": null, - "ip": null, - "user_agent": null - }, - "type": "standard" - } - recorded_at: Sun, 18 Feb 2024 23:18:56 GMT -- request: - method: post - uri: https://api.stripe.com/v1/payment_intents - body: - encoding: UTF-8 - 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.8.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Wbr0VoksDJMRSz","request_duration_ms":2220}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.8.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 5.15.0-92-generic (buildd@lcy02-amd64-002) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) - 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon - Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}' - Stripe-Account: - - acct_1OlJdK3P50uNgD3L - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Sun, 18 Feb 2024 23:18:57 GMT - Content-Type: - - application/json - Content-Length: - - '1396' - 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: - - 38ea3dac-f935-4511-a906-057263310590 - Original-Request: - - req_e6hlbnspoZ8FRt - Request-Id: - - req_e6hlbnspoZ8FRt - Stripe-Account: - - acct_1OlJdK3P50uNgD3L - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OlJdM3P50uNgD3L1TTJHq6z", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 1000, - "application": "", - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "automatic", - "client_secret": "pi_3OlJdM3P50uNgD3L1TTJHq6z_secret_vYJ4jMHatj3bwtyafHxb2II4G", - "confirmation_method": "automatic", - "created": 1708298336, - "currency": "aud", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OlJdM3P50uNgD3L1OIT6IVm", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OlJdM3P50uNgD3LTg9urTfT", - "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: Sun, 18 Feb 2024 23:18:57 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OlJdM3P50uNgD3L1TTJHq6z - body: - encoding: US-ASCII - string: '' - headers: - Authorization: - - Basic c2tfdGVzdF94RmdKUU9sWHBNQUZzb3p0endGQlRGaFAwMEhHN0J1Q0ptOg== - 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_1OlJdK3P50uNgD3L - 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: - - Sun, 18 Feb 2024 23:18:58 GMT - Content-Type: - - application/json - Content-Length: - - '5159' - 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_0XQkUeP9goSD62 - Stripe-Account: - - acct_1OlJdK3P50uNgD3L - 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_3OlJdM3P50uNgD3L1TTJHq6z", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 1000, - "application": "", - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "automatic", - "charges": { - "object": "list", - "data": [ - { - "id": "ch_3OlJdM3P50uNgD3L1OIT6IVm", - "object": "charge", - "amount": 1000, - "amount_captured": 1000, - "amount_refunded": 0, - "application": "", - "application_fee": null, - "application_fee_amount": null, - "balance_transaction": "txn_3OlJdM3P50uNgD3L1WGnM0ec", - "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": "OFNOFNOFN", - "captured": true, - "created": 1708298337, - "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": 2, - "seller_message": "Payment complete.", - "type": "authorized" - }, - "paid": true, - "payment_intent": "pi_3OlJdM3P50uNgD3L1TTJHq6z", - "payment_method": "pm_1OlJdM3P50uNgD3LTg9urTfT", - "payment_method_details": { - "card": { - "amount_authorized": 1000, - "brand": "mastercard", - "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": "BL35fEFVcTTS5wpE", - "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/CAcaFwoVYWNjdF8xT2xKZEszUDUwdU5nRDNMKOKgyq4GMgbXXEkyYz46LBb4_CJ9OvCAcpFK5JRnLm875MtWjznz4uWvnIbYnPZpGAiDUb9GJYVEppee", - "refunded": false, - "refunds": { - "object": "list", - "data": [], - "has_more": false, - "total_count": 0, - "url": "/v1/charges/ch_3OlJdM3P50uNgD3L1OIT6IVm/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_3OlJdM3P50uNgD3L1TTJHq6z" - }, - "client_secret": "pi_3OlJdM3P50uNgD3L1TTJHq6z_secret_vYJ4jMHatj3bwtyafHxb2II4G", - "confirmation_method": "automatic", - "created": 1708298336, - "currency": "aud", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OlJdM3P50uNgD3L1OIT6IVm", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OlJdM3P50uNgD3LTg9urTfT", - "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: Sun, 18 Feb 2024 23:18:58 GMT -- request: - method: post - uri: https://api.stripe.com/v1/charges/ch_3OlJdM3P50uNgD3L1OIT6IVm/refunds - body: - encoding: UTF-8 - string: amount=1000&expand[0]=charge - headers: - Content-Type: - - application/x-www-form-urlencoded - Authorization: - - Basic c2tfdGVzdF94RmdKUU9sWHBNQUZzb3p0endGQlRGaFAwMEhHN0J1Q0ptOg== - 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_1OlJdK3P50uNgD3L - 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: - - Sun, 18 Feb 2024 23:18:59 GMT - Content-Type: - - application/json - Content-Length: - - '4535' - 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: - - 1adc333b-f920-48aa-bc0d-e3b71af92255 - Original-Request: - - req_KKn5hjAhXnLhop - Request-Id: - - req_KKn5hjAhXnLhop - Stripe-Account: - - acct_1OlJdK3P50uNgD3L - 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_3OlJdM3P50uNgD3L15XH6tpe", - "object": "refund", - "amount": 1000, - "balance_transaction": "txn_3OlJdM3P50uNgD3L1uKIjwp5", - "charge": { - "id": "ch_3OlJdM3P50uNgD3L1OIT6IVm", - "object": "charge", - "amount": 1000, - "amount_captured": 1000, - "amount_refunded": 1000, - "application": "", - "application_fee": null, - "application_fee_amount": null, - "balance_transaction": "txn_3OlJdM3P50uNgD3L1WGnM0ec", - "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": "OFNOFNOFN", - "captured": true, - "created": 1708298337, - "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": 2, - "seller_message": "Payment complete.", - "type": "authorized" - }, - "paid": true, - "payment_intent": "pi_3OlJdM3P50uNgD3L1TTJHq6z", - "payment_method": "pm_1OlJdM3P50uNgD3LTg9urTfT", - "payment_method_details": { - "card": { - "amount_authorized": 1000, - "brand": "mastercard", - "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": "BL35fEFVcTTS5wpE", - "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/CAcaFwoVYWNjdF8xT2xKZEszUDUwdU5nRDNMKOOgyq4GMgZRQKCkX886LBY0QZ4Hm4Fpy1v-B0NQrJrOyBw_S4LSZiRKrUVBfGgxoP7wLS6zCudbkSFK", - "refunded": true, - "refunds": { - "object": "list", - "data": [ - { - "id": "re_3OlJdM3P50uNgD3L15XH6tpe", - "object": "refund", - "amount": 1000, - "balance_transaction": "txn_3OlJdM3P50uNgD3L1uKIjwp5", - "charge": "ch_3OlJdM3P50uNgD3L1OIT6IVm", - "created": 1708298339, - "currency": "aud", - "destination_details": { - "card": { - "reference_status": "pending", - "reference_type": "acquirer_reference_number", - "type": "refund" - }, - "type": "card" - }, - "metadata": {}, - "payment_intent": "pi_3OlJdM3P50uNgD3L1TTJHq6z", - "reason": null, - "receipt_number": null, - "source_transfer_reversal": null, - "status": "succeeded", - "transfer_reversal": null - } - ], - "has_more": false, - "total_count": 1, - "url": "/v1/charges/ch_3OlJdM3P50uNgD3L1OIT6IVm/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": 1708298339, - "currency": "aud", - "destination_details": { - "card": { - "reference_status": "pending", - "reference_type": "acquirer_reference_number", - "type": "refund" - }, - "type": "card" - }, - "metadata": {}, - "payment_intent": "pi_3OlJdM3P50uNgD3L1TTJHq6z", - "reason": null, - "receipt_number": null, - "source_transfer_reversal": null, - "status": "succeeded", - "transfer_reversal": null - } - recorded_at: Sun, 18 Feb 2024 23:19:00 GMT -recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.8.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 deleted file mode 100644 index 5b2fbf0092..0000000000 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.8.0/Spree_Gateway_StripeSCA/_void/with_a_confirmed_payment/refunds_the_payment.yml +++ /dev/null @@ -1,1087 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.stripe.com/v1/accounts - body: - encoding: UTF-8 - string: type=standard&country=AU&email=carrot.producer%40example.com - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.8.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_RQ4tnyZMxaTrfg","request_duration_ms":0}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.8.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 5.15.0-92-generic (buildd@lcy02-amd64-002) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) - 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon - Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Sun, 18 Feb 2024 23:31:52 GMT - Content-Type: - - application/json - Content-Length: - - '3046' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Faccounts; block-all-mixed-content; - default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; - img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' - Idempotency-Key: - - 2ed389f6-f571-412f-8164-91dd63633bab - Original-Request: - - req_meqXmqkS2joigR - Request-Id: - - req_meqXmqkS2joigR - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "acct_1OlJpq4IDOolHj4A", - "object": "account", - "business_profile": { - "annual_revenue": null, - "estimated_worker_count": null, - "mcc": null, - "name": null, - "product_description": null, - "support_address": null, - "support_email": null, - "support_phone": null, - "support_url": null, - "url": null - }, - "business_type": null, - "capabilities": {}, - "charges_enabled": false, - "controller": { - "is_controller": true, - "type": "application" - }, - "country": "AU", - "created": 1708299111, - "default_currency": "aud", - "details_submitted": false, - "email": "carrot.producer@example.com", - "external_accounts": { - "object": "list", - "data": [], - "has_more": false, - "total_count": 0, - "url": "/v1/accounts/acct_1OlJpq4IDOolHj4A/external_accounts" - }, - "future_requirements": { - "alternatives": [], - "current_deadline": null, - "currently_due": [], - "disabled_reason": null, - "errors": [], - "eventually_due": [], - "past_due": [], - "pending_verification": [] - }, - "metadata": {}, - "payouts_enabled": false, - "requirements": { - "alternatives": [], - "current_deadline": null, - "currently_due": [ - "business_profile.product_description", - "business_profile.support_phone", - "business_profile.url", - "external_account", - "tos_acceptance.date", - "tos_acceptance.ip" - ], - "disabled_reason": "requirements.past_due", - "errors": [], - "eventually_due": [ - "business_profile.product_description", - "business_profile.support_phone", - "business_profile.url", - "external_account", - "tos_acceptance.date", - "tos_acceptance.ip" - ], - "past_due": [ - "external_account", - "tos_acceptance.date", - "tos_acceptance.ip" - ], - "pending_verification": [] - }, - "settings": { - "bacs_debit_payments": { - "display_name": null, - "service_user_number": null - }, - "branding": { - "icon": null, - "logo": null, - "primary_color": null, - "secondary_color": null - }, - "card_issuing": { - "tos_acceptance": { - "date": null, - "ip": null - } - }, - "card_payments": { - "decline_on": { - "avs_failure": false, - "cvc_failure": false - }, - "statement_descriptor_prefix": null, - "statement_descriptor_prefix_kana": null, - "statement_descriptor_prefix_kanji": null - }, - "dashboard": { - "display_name": null, - "timezone": "Etc/UTC" - }, - "invoices": { - "default_account_tax_ids": null - }, - "payments": { - "statement_descriptor": null, - "statement_descriptor_kana": null, - "statement_descriptor_kanji": null - }, - "payouts": { - "debit_negative_balances": true, - "schedule": { - "delay_days": 2, - "interval": "daily" - }, - "statement_descriptor": null - }, - "sepa_debit_payments": {} - }, - "tos_acceptance": { - "date": null, - "ip": null, - "user_agent": null - }, - "type": "standard" - } - recorded_at: Sun, 18 Feb 2024 23:31:52 GMT -- request: - method: post - uri: https://api.stripe.com/v1/payment_intents - body: - encoding: UTF-8 - 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.8.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_meqXmqkS2joigR","request_duration_ms":2100}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.8.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 5.15.0-92-generic (buildd@lcy02-amd64-002) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) - 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon - Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}' - Stripe-Account: - - acct_1OlJpq4IDOolHj4A - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Sun, 18 Feb 2024 23:31:53 GMT - Content-Type: - - application/json - Content-Length: - - '1396' - 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: - - faeaef1a-6ba5-40e5-be52-848b398c8695 - Original-Request: - - req_MngqpVVLXd1sJL - Request-Id: - - req_MngqpVVLXd1sJL - Stripe-Account: - - acct_1OlJpq4IDOolHj4A - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OlJps4IDOolHj4A0FSKbxMR", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 1000, - "application": "", - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "automatic", - "client_secret": "pi_3OlJps4IDOolHj4A0FSKbxMR_secret_j9TxEMm87Qo3bbIs9UEPtVGTK", - "confirmation_method": "automatic", - "created": 1708299112, - "currency": "aud", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OlJps4IDOolHj4A0xc8SBvy", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OlJps4IDOolHj4AJIs76ygW", - "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: Sun, 18 Feb 2024 23:31:53 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.8.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_MngqpVVLXd1sJL","request_duration_ms":1423}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.8.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 5.15.0-92-generic (buildd@lcy02-amd64-002) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) - 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon - Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Sun, 18 Feb 2024 23:31:54 GMT - Content-Type: - - application/json - Content-Length: - - '977' - 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_npRtP9yodXxNC9 - 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_1OlJpuKuuB1fWySnkErwTuoc", - "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", - "display_brand": "mastercard", - "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": 1708299114, - "customer": null, - "livemode": false, - "metadata": {}, - "type": "card" - } - recorded_at: Sun, 18 Feb 2024 23:31:55 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OlJps4IDOolHj4A0FSKbxMR - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - 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_npRtP9yodXxNC9","request_duration_ms":560}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.8.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 5.15.0-92-generic (buildd@lcy02-amd64-002) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) - 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon - Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}' - Stripe-Account: - - acct_1OlJpq4IDOolHj4A - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Sun, 18 Feb 2024 23:31:55 GMT - Content-Type: - - application/json - Content-Length: - - '1396' - 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_v39bGC0NS2ATEx - Stripe-Account: - - acct_1OlJpq4IDOolHj4A - 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": "pi_3OlJps4IDOolHj4A0FSKbxMR", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 1000, - "application": "", - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "automatic", - "client_secret": "pi_3OlJps4IDOolHj4A0FSKbxMR_secret_j9TxEMm87Qo3bbIs9UEPtVGTK", - "confirmation_method": "automatic", - "created": 1708299112, - "currency": "aud", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OlJps4IDOolHj4A0xc8SBvy", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OlJps4IDOolHj4AJIs76ygW", - "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: Sun, 18 Feb 2024 23:31:55 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OlJps4IDOolHj4A0FSKbxMR - body: - encoding: US-ASCII - string: '' - headers: - Authorization: - - Basic c2tfdGVzdF94RmdKUU9sWHBNQUZzb3p0endGQlRGaFAwMEhHN0J1Q0ptOg== - 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_1OlJpq4IDOolHj4A - 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: - - Sun, 18 Feb 2024 23:31:56 GMT - Content-Type: - - application/json - Content-Length: - - '5160' - 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_BpoOBuAdbqdFxT - Stripe-Account: - - acct_1OlJpq4IDOolHj4A - 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_3OlJps4IDOolHj4A0FSKbxMR", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 1000, - "application": "", - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "automatic", - "charges": { - "object": "list", - "data": [ - { - "id": "ch_3OlJps4IDOolHj4A0xc8SBvy", - "object": "charge", - "amount": 1000, - "amount_captured": 1000, - "amount_refunded": 0, - "application": "", - "application_fee": null, - "application_fee_amount": null, - "balance_transaction": "txn_3OlJps4IDOolHj4A0be0gc2M", - "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": "OFNOFNOFN", - "captured": true, - "created": 1708299113, - "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": 15, - "seller_message": "Payment complete.", - "type": "authorized" - }, - "paid": true, - "payment_intent": "pi_3OlJps4IDOolHj4A0FSKbxMR", - "payment_method": "pm_1OlJps4IDOolHj4AJIs76ygW", - "payment_method_details": { - "card": { - "amount_authorized": 1000, - "brand": "mastercard", - "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": "BL35fEFVcTTS5wpE", - "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/CAcaFwoVYWNjdF8xT2xKcHE0SURPb2xIajRBKOymyq4GMgaCH-hx8Xs6LBZk7rUcrlcl82luDEKcN3jln7XbThp1gFFoook-2b4wWsQ3bajF9tLklKpL", - "refunded": false, - "refunds": { - "object": "list", - "data": [], - "has_more": false, - "total_count": 0, - "url": "/v1/charges/ch_3OlJps4IDOolHj4A0xc8SBvy/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_3OlJps4IDOolHj4A0FSKbxMR" - }, - "client_secret": "pi_3OlJps4IDOolHj4A0FSKbxMR_secret_j9TxEMm87Qo3bbIs9UEPtVGTK", - "confirmation_method": "automatic", - "created": 1708299112, - "currency": "aud", - "customer": null, - "description": null, - "invoice": null, - "last_payment_error": null, - "latest_charge": "ch_3OlJps4IDOolHj4A0xc8SBvy", - "livemode": false, - "metadata": {}, - "next_action": null, - "on_behalf_of": null, - "payment_method": "pm_1OlJps4IDOolHj4AJIs76ygW", - "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: Sun, 18 Feb 2024 23:31:56 GMT -- request: - method: post - uri: https://api.stripe.com/v1/charges/ch_3OlJps4IDOolHj4A0xc8SBvy/refunds - body: - encoding: UTF-8 - string: amount=1000&expand[0]=charge - headers: - Content-Type: - - application/x-www-form-urlencoded - Authorization: - - Basic c2tfdGVzdF94RmdKUU9sWHBNQUZzb3p0endGQlRGaFAwMEhHN0J1Q0ptOg== - 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_1OlJpq4IDOolHj4A - 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: - - Sun, 18 Feb 2024 23:31:57 GMT - Content-Type: - - application/json - Content-Length: - - '4536' - 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: - - 14e5eaed-eb35-4530-bd97-b10e0b6485e9 - Original-Request: - - req_ZrY5fViOUd9zj5 - Request-Id: - - req_ZrY5fViOUd9zj5 - Stripe-Account: - - acct_1OlJpq4IDOolHj4A - 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_3OlJps4IDOolHj4A0fuLJjYP", - "object": "refund", - "amount": 1000, - "balance_transaction": "txn_3OlJps4IDOolHj4A0uopfEv0", - "charge": { - "id": "ch_3OlJps4IDOolHj4A0xc8SBvy", - "object": "charge", - "amount": 1000, - "amount_captured": 1000, - "amount_refunded": 1000, - "application": "", - "application_fee": null, - "application_fee_amount": null, - "balance_transaction": "txn_3OlJps4IDOolHj4A0be0gc2M", - "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": "OFNOFNOFN", - "captured": true, - "created": 1708299113, - "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": 15, - "seller_message": "Payment complete.", - "type": "authorized" - }, - "paid": true, - "payment_intent": "pi_3OlJps4IDOolHj4A0FSKbxMR", - "payment_method": "pm_1OlJps4IDOolHj4AJIs76ygW", - "payment_method_details": { - "card": { - "amount_authorized": 1000, - "brand": "mastercard", - "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": "BL35fEFVcTTS5wpE", - "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/CAcaFwoVYWNjdF8xT2xKcHE0SURPb2xIajRBKO2myq4GMgbWCpqeR486LBbcEhBtNPuCryM5xJKKFpmwBkERo7JjAc7onU_q6xbxOVm8exXEF1tcb9r0", - "refunded": true, - "refunds": { - "object": "list", - "data": [ - { - "id": "re_3OlJps4IDOolHj4A0fuLJjYP", - "object": "refund", - "amount": 1000, - "balance_transaction": "txn_3OlJps4IDOolHj4A0uopfEv0", - "charge": "ch_3OlJps4IDOolHj4A0xc8SBvy", - "created": 1708299116, - "currency": "aud", - "destination_details": { - "card": { - "reference_status": "pending", - "reference_type": "acquirer_reference_number", - "type": "refund" - }, - "type": "card" - }, - "metadata": {}, - "payment_intent": "pi_3OlJps4IDOolHj4A0FSKbxMR", - "reason": null, - "receipt_number": null, - "source_transfer_reversal": null, - "status": "succeeded", - "transfer_reversal": null - } - ], - "has_more": false, - "total_count": 1, - "url": "/v1/charges/ch_3OlJps4IDOolHj4A0xc8SBvy/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": 1708299116, - "currency": "aud", - "destination_details": { - "card": { - "reference_status": "pending", - "reference_type": "acquirer_reference_number", - "type": "refund" - }, - "type": "card" - }, - "metadata": {}, - "payment_intent": "pi_3OlJps4IDOolHj4A0FSKbxMR", - "reason": null, - "receipt_number": null, - "source_transfer_reversal": null, - "status": "succeeded", - "transfer_reversal": null - } - recorded_at: Sun, 18 Feb 2024 23:31:57 GMT -recorded_with: VCR 6.2.0 diff --git a/spec/fixtures/vcr_cassettes/Stripe-v10.8.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 deleted file mode 100644 index f265e280d7..0000000000 --- a/spec/fixtures/vcr_cassettes/Stripe-v10.8.0/Spree_Gateway_StripeSCA/_void/with_a_voidable_payment/void_the_payment.yml +++ /dev/null @@ -1,738 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.stripe.com/v1/accounts - body: - encoding: UTF-8 - string: type=standard&country=AU&email=carrot.producer%40example.com - headers: - User-Agent: - - Stripe/v1 RubyBindings/10.8.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_v39bGC0NS2ATEx","request_duration_ms":499}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.8.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 5.15.0-92-generic (buildd@lcy02-amd64-002) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) - 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon - Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Sun, 18 Feb 2024 23:31:59 GMT - Content-Type: - - application/json - Content-Length: - - '3046' - Connection: - - keep-alive - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET,HEAD,PUT,PATCH,POST,DELETE - Access-Control-Allow-Origin: - - "*" - Access-Control-Expose-Headers: - - Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, - X-Stripe-Privileged-Session-Required - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Content-Security-Policy: - - report-uri https://q.stripe.com/csp-report?p=v1%2Faccounts; block-all-mixed-content; - default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; - img-src 'self'; script-src 'self' 'report-sample'; style-src 'self' - Idempotency-Key: - - 8f008bd6-9ce8-428b-9327-a5b768f25be2 - Original-Request: - - req_gHdtWKWo8Ywyim - Request-Id: - - req_gHdtWKWo8Ywyim - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "acct_1OlJpx4FpDs6HNTb", - "object": "account", - "business_profile": { - "annual_revenue": null, - "estimated_worker_count": null, - "mcc": null, - "name": null, - "product_description": null, - "support_address": null, - "support_email": null, - "support_phone": null, - "support_url": null, - "url": null - }, - "business_type": null, - "capabilities": {}, - "charges_enabled": false, - "controller": { - "is_controller": true, - "type": "application" - }, - "country": "AU", - "created": 1708299118, - "default_currency": "aud", - "details_submitted": false, - "email": "carrot.producer@example.com", - "external_accounts": { - "object": "list", - "data": [], - "has_more": false, - "total_count": 0, - "url": "/v1/accounts/acct_1OlJpx4FpDs6HNTb/external_accounts" - }, - "future_requirements": { - "alternatives": [], - "current_deadline": null, - "currently_due": [], - "disabled_reason": null, - "errors": [], - "eventually_due": [], - "past_due": [], - "pending_verification": [] - }, - "metadata": {}, - "payouts_enabled": false, - "requirements": { - "alternatives": [], - "current_deadline": null, - "currently_due": [ - "business_profile.product_description", - "business_profile.support_phone", - "business_profile.url", - "external_account", - "tos_acceptance.date", - "tos_acceptance.ip" - ], - "disabled_reason": "requirements.past_due", - "errors": [], - "eventually_due": [ - "business_profile.product_description", - "business_profile.support_phone", - "business_profile.url", - "external_account", - "tos_acceptance.date", - "tos_acceptance.ip" - ], - "past_due": [ - "external_account", - "tos_acceptance.date", - "tos_acceptance.ip" - ], - "pending_verification": [] - }, - "settings": { - "bacs_debit_payments": { - "display_name": null, - "service_user_number": null - }, - "branding": { - "icon": null, - "logo": null, - "primary_color": null, - "secondary_color": null - }, - "card_issuing": { - "tos_acceptance": { - "date": null, - "ip": null - } - }, - "card_payments": { - "decline_on": { - "avs_failure": false, - "cvc_failure": false - }, - "statement_descriptor_prefix": null, - "statement_descriptor_prefix_kana": null, - "statement_descriptor_prefix_kanji": null - }, - "dashboard": { - "display_name": null, - "timezone": "Etc/UTC" - }, - "invoices": { - "default_account_tax_ids": null - }, - "payments": { - "statement_descriptor": null, - "statement_descriptor_kana": null, - "statement_descriptor_kanji": null - }, - "payouts": { - "debit_negative_balances": true, - "schedule": { - "delay_days": 2, - "interval": "daily" - }, - "statement_descriptor": null - }, - "sepa_debit_payments": {} - }, - "tos_acceptance": { - "date": null, - "ip": null, - "user_agent": null - }, - "type": "standard" - } - recorded_at: Sun, 18 Feb 2024 23:31:59 GMT -- request: - method: post - uri: https://api.stripe.com/v1/payment_intents - 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.8.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_gHdtWKWo8Ywyim","request_duration_ms":1712}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.8.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 5.15.0-92-generic (buildd@lcy02-amd64-002) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) - 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon - Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}' - Stripe-Account: - - acct_1OlJpx4FpDs6HNTb - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Sun, 18 Feb 2024 23:31:59 GMT - Content-Type: - - application/json - Content-Length: - - '1377' - 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: - - ee9d6e1c-4298-444c-b7b7-19d6fbc01eb0 - Original-Request: - - req_Z8fycI2zLmmQsU - Request-Id: - - req_Z8fycI2zLmmQsU - Stripe-Account: - - acct_1OlJpx4FpDs6HNTb - Stripe-Should-Retry: - - 'false' - Stripe-Version: - - '2023-10-16' - Vary: - - Origin - X-Stripe-Routing-Context-Priority-Tier: - - api-testmode - Strict-Transport-Security: - - max-age=63072000; includeSubDomains; preload - body: - encoding: UTF-8 - string: |- - { - "id": "pi_3OlJpz4FpDs6HNTb0Iz2h8vT", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": "", - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OlJpz4FpDs6HNTb0Iz2h8vT_secret_I512Wt8V0ucFAWLSMwHPWXvCA", - "confirmation_method": "automatic", - "created": 1708299119, - "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_1OlJpz4FpDs6HNTbKam9f2S3", - "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: Sun, 18 Feb 2024 23:32:00 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.8.0 - Authorization: - - Bearer - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-Telemetry: - - '{"last_request_metrics":{"request_id":"req_Z8fycI2zLmmQsU","request_duration_ms":720}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.8.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 5.15.0-92-generic (buildd@lcy02-amd64-002) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) - 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon - Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}' - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Sun, 18 Feb 2024 23:32:01 GMT - Content-Type: - - application/json - Content-Length: - - '977' - 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_ja6110bAf7mNnp - 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_1OlJq0KuuB1fWySnfoDRqyeT", - "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", - "display_brand": "mastercard", - "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": 1708299120, - "customer": null, - "livemode": false, - "metadata": {}, - "type": "card" - } - recorded_at: Sun, 18 Feb 2024 23:32:01 GMT -- request: - method: get - uri: https://api.stripe.com/v1/payment_intents/pi_3OlJpz4FpDs6HNTb0Iz2h8vT - body: - encoding: US-ASCII - string: '' - headers: - User-Agent: - - 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_ja6110bAf7mNnp","request_duration_ms":538}}' - Stripe-Version: - - '2023-10-16' - X-Stripe-Client-User-Agent: - - '{"bindings_version":"10.8.0","lang":"ruby","lang_version":"3.1.4 p223 (2023-03-30)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux - version 5.15.0-92-generic (buildd@lcy02-amd64-002) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) - 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #102~20.04.1-Ubuntu SMP Mon - Jan 15 13:09:14 UTC 2024","hostname":"gaetan-Dell-G15"}' - Stripe-Account: - - acct_1OlJpx4FpDs6HNTb - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Sun, 18 Feb 2024 23:32:01 GMT - Content-Type: - - application/json - Content-Length: - - '1377' - 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_7o6W2mEV9dHwzj - Stripe-Account: - - acct_1OlJpx4FpDs6HNTb - 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": "pi_3OlJpz4FpDs6HNTb0Iz2h8vT", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": "", - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": null, - "cancellation_reason": null, - "capture_method": "manual", - "client_secret": "pi_3OlJpz4FpDs6HNTb0Iz2h8vT_secret_I512Wt8V0ucFAWLSMwHPWXvCA", - "confirmation_method": "automatic", - "created": 1708299119, - "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_1OlJpz4FpDs6HNTbKam9f2S3", - "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: Sun, 18 Feb 2024 23:32:01 GMT -- request: - method: post - uri: https://api.stripe.com/v1/payment_intents/pi_3OlJpz4FpDs6HNTb0Iz2h8vT/cancel - body: - encoding: US-ASCII - string: '' - headers: - Content-Type: - - application/x-www-form-urlencoded - Authorization: - - Basic c2tfdGVzdF94RmdKUU9sWHBNQUZzb3p0endGQlRGaFAwMEhHN0J1Q0ptOg== - 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_1OlJpx4FpDs6HNTb - 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: - - Sun, 18 Feb 2024 23:32:02 GMT - Content-Type: - - application/json - Content-Length: - - '1541' - 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: - - add367a8-a518-4762-9e62-16695b6a49ca - Original-Request: - - req_juZ0k8HqCGOhHL - Request-Id: - - req_juZ0k8HqCGOhHL - Stripe-Account: - - acct_1OlJpx4FpDs6HNTb - 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_3OlJpz4FpDs6HNTb0Iz2h8vT", - "object": "payment_intent", - "amount": 1000, - "amount_capturable": 0, - "amount_details": { - "tip": {} - }, - "amount_received": 0, - "application": "", - "application_fee_amount": null, - "automatic_payment_methods": null, - "canceled_at": 1708299122, - "cancellation_reason": null, - "capture_method": "manual", - "charges": { - "object": "list", - "data": [], - "has_more": false, - "total_count": 0, - "url": "/v1/charges?payment_intent=pi_3OlJpz4FpDs6HNTb0Iz2h8vT" - }, - "client_secret": "pi_3OlJpz4FpDs6HNTb0Iz2h8vT_secret_I512Wt8V0ucFAWLSMwHPWXvCA", - "confirmation_method": "automatic", - "created": 1708299119, - "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_1OlJpz4FpDs6HNTbKam9f2S3", - "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: Sun, 18 Feb 2024 23:32:02 GMT -recorded_with: VCR 6.2.0